toplev.c (process_options, [...]): Set flag_no_inline before the post_options hook.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Thu, 13 Dec 2001 21:37:27 +0000 (21:37 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 13 Dec 2001 21:37:27 +0000 (21:37 +0000)
* toplev.c (process_options, parse_options_and_default_flags):
Set flag_no_inline before the post_options hook.

From-SVN: r47979

gcc/ChangeLog
gcc/toplev.c

index ab1f2601a71e200ae92040ae09ec34a692989f45..48d94fbaa87e37472b2e56336c4ee42a61c5be25 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-13  Neil Booth  <neil@daikokuya.demon.co.uk>
+
+       * toplev.c (process_options, parse_options_and_default_flags):
+       Set flag_no_inline before the post_options hook.
+
 2001-12-13  Richard Henderson  <rth@redhat.com>
 
        * emit-rtl.c (adjust_address_1): Don't adjust address if adjust
index eeac7723307a5c6b570e2c969c8c27c5483e436b..6a682ea50d126043ffcedae3bc54f0f9e7c6afc6 100644 (file)
@@ -4762,15 +4762,11 @@ parse_options_and_default_flags (argc, argv)
        }
     }
 
-  /* All command line options have been parsed; allow the front end to
-     perform consistency checks, etc.  */
-  (*lang_hooks.post_options) ();
-}
-\f
-/* Process the options that have been parsed.  */
-static void
-process_options ()
-{
+  /* Set flag_no_inline before the post_options () hook.  The C front
+     ends use it to determine tree inlining defaults.  FIXME: such
+     code should be lang-independent when all front ends use tree
+     inlining, in which case it, and this condition, should be moved
+     to the top of process_options() instead.  */
   if (optimize == 0)
     {
       /* Inlining does not work if not optimizing,
@@ -4785,6 +4781,15 @@ process_options ()
        warning ("-Wuninitialized is not supported without -O");
     }
 
+  /* All command line options have been parsed; allow the front end to
+     perform consistency checks, etc.  */
+  (*lang_hooks.post_options) ();
+}
+\f
+/* Process the options that have been parsed.  */
+static void
+process_options ()
+{
 #ifdef OVERRIDE_OPTIONS
   /* Some machines may reject certain combinations of options.  */
   OVERRIDE_OPTIONS;