(compile_file): Don't try to write function if we didn't save insns
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 23 Jun 1994 22:56:06 +0000 (18:56 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 23 Jun 1994 22:56:06 +0000 (18:56 -0400)
for it.

From-SVN: r7544

gcc/toplev.c

index 7eb9ff1..d10c38b 100644 (file)
@@ -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)))