summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-13 21:37:27 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-13 21:37:27 +0000
commit5764e93aaff2ca0f73b6fecea95ba5558ffa93f9 (patch)
tree1a33e025054d68b903323ee48a34af95000af959 /gcc/toplev.c
parentcd358719a2f0694c9ee124df888001005ad3121a (diff)
downloadgcc-5764e93aaff2ca0f73b6fecea95ba5558ffa93f9.tar.gz
* toplev.c (process_options, parse_options_and_default_flags):
Set flag_no_inline before the post_options hook. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47979 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index eeac7723307..6a682ea50d1 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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) ();
-}
-
-/* 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) ();
+}
+
+/* Process the options that have been parsed. */
+static void
+process_options ()
+{
#ifdef OVERRIDE_OPTIONS
/* Some machines may reject certain combinations of options. */
OVERRIDE_OPTIONS;