Commit a32274ad by Neil Booth Committed by Neil Booth

toplev.c (process_options, [...]): Set flag_no_inline before the post_options hook.

	* toplev.c (process_options, parse_options_and_default_flags):
	Set flag_no_inline before the post_options hook.

From-SVN: r47979
parent 4a78c787
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> 2001-12-13 Richard Henderson <rth@redhat.com>
* emit-rtl.c (adjust_address_1): Don't adjust address if adjust * emit-rtl.c (adjust_address_1): Don't adjust address if adjust
......
...@@ -4762,15 +4762,11 @@ parse_options_and_default_flags (argc, argv) ...@@ -4762,15 +4762,11 @@ parse_options_and_default_flags (argc, argv)
} }
} }
/* All command line options have been parsed; allow the front end to /* Set flag_no_inline before the post_options () hook. The C front
perform consistency checks, etc. */ ends use it to determine tree inlining defaults. FIXME: such
(*lang_hooks.post_options) (); 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. */
/* Process the options that have been parsed. */
static void
process_options ()
{
if (optimize == 0) if (optimize == 0)
{ {
/* Inlining does not work if not optimizing, /* Inlining does not work if not optimizing,
...@@ -4785,6 +4781,15 @@ process_options () ...@@ -4785,6 +4781,15 @@ process_options ()
warning ("-Wuninitialized is not supported without -O"); 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 #ifdef OVERRIDE_OPTIONS
/* Some machines may reject certain combinations of options. */ /* Some machines may reject certain combinations of options. */
OVERRIDE_OPTIONS; OVERRIDE_OPTIONS;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment