From 8838265b317b7afd3c3ad2ad713e9637b3b9b127 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 23 Jun 1994 18:56:06 -0400 Subject: [PATCH] (compile_file): Don't try to write function if we didn't save insns for it. From-SVN: r7544 --- gcc/toplev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/toplev.c b/gcc/toplev.c index 7eb9ff13151..d10c38bb87e 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)))