]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
*** empty log message ***
authorRichard Stallman <rms@gnu.org>
Fri, 6 Mar 1992 23:26:22 +0000 (23:26 +0000)
committerRichard Stallman <rms@gnu.org>
Fri, 6 Mar 1992 23:26:22 +0000 (23:26 +0000)
From-SVN: r404

gcc/toplev.c

index 0b4b63db8d79168587ab2fdd6d79ec3770041887..790b7c1ed268d790d6b528d268b630f1b27dffa9 100644 (file)
@@ -1656,12 +1656,15 @@ compile_file (name)
            && ! TREE_EXTERNAL (decl))
          output_inline_function (decl);
 
-       /* Warn about any function or variable
-          declared static but not defined.  */
+       /* Warn about any function
+          declared static but not defined.
+          We don't warn about variables,
+          because many programs have static variables
+          that exist only to get some text into the object file.  */
        if ((warn_unused
             || TREE_USED (decl)
             || (DECL_NAME (decl) && TREE_USED (DECL_NAME (decl))))
-/*         && TREE_CODE (decl) == FUNCTION_DECL  */
+           && TREE_CODE (decl) == FUNCTION_DECL
            && DECL_INITIAL (decl) == 0
            && TREE_EXTERNAL (decl)
            && ! TREE_PUBLIC (decl))
@@ -2559,6 +2562,7 @@ main (argc, argv, envp)
       flag_expensive_optimizations = 1;
       flag_strength_reduce = 1;
       flag_rerun_cse_after_loop = 1;
+      flag_caller_saves = 1;
 #ifdef INSN_SCHEDULING
       flag_schedule_insns = 1;
       flag_schedule_insns_after_reload = 1;