From: Richard Kenner Date: Thu, 23 Jun 1994 22:56:06 +0000 (-0400) Subject: (compile_file): Don't try to write function if we didn't save insns X-Git-Tag: misc/cutover-egcs-0~6399 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8838265b317b7afd3c3ad2ad713e9637b3b9b127;p=thirdparty%2Fgcc.git (compile_file): Don't try to write function if we didn't save insns for it. From-SVN: r7544 --- diff --git a/gcc/toplev.c b/gcc/toplev.c index 7eb9ff13151f..d10c38bb87ef 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2326,6 +2326,7 @@ compile_file (name) if (TREE_CODE (decl) == FUNCTION_DECL && ! TREE_ASM_WRITTEN (decl) && DECL_INITIAL (decl) != 0 + && DECL_SAVED_INSNS (decl) != 0 && (TREE_ADDRESSABLE (decl) || flag_keep_inline_functions || TREE_ADDRESSABLE (DECL_ASSEMBLER_NAME (decl)))