toplev.c (main): Don't complain about saying -gdwarf.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 9 Jul 1999 22:48:57 +0000 (22:48 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 9 Jul 1999 22:48:57 +0000 (18:48 -0400)
* toplev.c (main): Don't complain about saying -gdwarf.
(rest_of_compilation): Remove redundant code.

From-SVN: r28049

gcc/ChangeLog
gcc/toplev.c

index d2b35831e2771eed7fdd6bebe99758e7d024492b..64d2e81804319a16bb6794f741791d029a64ad5a 100644 (file)
@@ -1,3 +1,8 @@
+Fri Jul  9 22:39:44 1999  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * toplev.c (main): Don't complain about saying -gdwarf.
+       (rest_of_compilation): Remove redundant code.
+
 Fri Jul  9 19:08:55 1999  Jim Wilson  <wilson@cygnus.com>
 
        * unroll.c (unroll_loops): Don't delete named CODE_LABELs.
index 92617f799dc007ff86fd66eff33f9de478c16037..d60c206aa31ca7a3b2962d3d0e703c77493cddcc 100644 (file)
@@ -3656,11 +3656,6 @@ rest_of_compilation (decl)
          close_dump_file (print_rtl, insns);
        }
 
-      /* If we can, defer compiling inlines until EOF.
-        save_for_inline_copying can be extremely expensive.  */
-      if (inlinable && ! decl_function_context (decl))
-       DECL_DEFER_OUTPUT (decl) = 1;
-
       /* If function is inline, and we don't yet know whether to
         compile it by itself, defer decision till end of compilation.
         finish_compilation will call rest_of_compilation again
@@ -3673,7 +3668,8 @@ rest_of_compilation (decl)
       /* If this is a nested inline, remove ADDRESSOF now so we can
         finish compiling ourselves.  Otherwise, wait until EOF.
         We have to do this because the purge_addressof transformation
-        changes the DECL_RTL for many variables, which confuses integrate.  */
+        changes the DECL_RTL for many variables, which confuses integrate.
+        Also, save_for_inline_copying can be very expensive.  */
       if (inlinable)
        {
          if (decl_function_context (decl))
@@ -5247,7 +5243,7 @@ main (argc, argv)
                      else
                        level = 2;
 
-                     if (da_len > 1 && !strncmp (str, "gdwarf", da_len))
+                     if (da_len > 1 && *p && !strncmp (str, "gdwarf", da_len))
                        {
                          error ("use -gdwarf -g%d for DWARF v1, level %d",
                                 level, level);