toplev.c (flag_no_inline, [...]): Default to 2.
* toplev.c (flag_no_inline, flag_really_no_inline): Default to 2. (parse_options_and_default_flags): Set them appropriately. * c-common.c (c_common_post_options): Don't set flag_really_no_inline. From-SVN: r51960
This commit is contained in:
parent
d777f21092
commit
1c0400ac1c
|
@ -1,3 +1,9 @@
|
|||
2002-04-06 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
|
||||
(parse_options_and_default_flags): Set them appropriately.
|
||||
* c-common.c (c_common_post_options): Don't set flag_really_no_inline.
|
||||
|
||||
Sat Apr 6 18:26:32 CEST 2002 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* ifcvt.c (if_convert): Clear aux fields of blocks.
|
||||
|
|
|
@ -4123,9 +4123,6 @@ c_common_post_options ()
|
|||
{
|
||||
cpp_post_options (parse_in);
|
||||
|
||||
/* Save no-inline information we may clobber below. */
|
||||
flag_really_no_inline = flag_no_inline;
|
||||
|
||||
flag_inline_trees = 1;
|
||||
|
||||
/* Use tree inlining if possible. Function instrumentation is only
|
||||
|
|
12
gcc/toplev.c
12
gcc/toplev.c
|
@ -653,12 +653,12 @@ int flag_keep_inline_functions;
|
|||
|
||||
/* Nonzero means that functions will not be inlined. */
|
||||
|
||||
int flag_no_inline;
|
||||
int flag_no_inline = 2;
|
||||
|
||||
/* Nonzero means that we don't want inlining by virtue of -fno-inline,
|
||||
not just because the tree inliner turned us off. */
|
||||
|
||||
int flag_really_no_inline;
|
||||
int flag_really_no_inline = 2;
|
||||
|
||||
/* Nonzero means that we should emit static const variables
|
||||
regardless of whether or not optimization is turned on. */
|
||||
|
@ -4798,6 +4798,11 @@ parse_options_and_default_flags (argc, argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (flag_no_inline == 2)
|
||||
flag_no_inline = 0;
|
||||
else
|
||||
flag_really_no_inline = flag_no_inline;
|
||||
|
||||
/* 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
|
||||
|
@ -4817,6 +4822,9 @@ parse_options_and_default_flags (argc, argv)
|
|||
warning ("-Wuninitialized is not supported without -O");
|
||||
}
|
||||
|
||||
if (flag_really_no_inline == 2)
|
||||
flag_really_no_inline = flag_no_inline;
|
||||
|
||||
/* All command line options have been parsed; allow the front end to
|
||||
perform consistency checks, etc. */
|
||||
(*lang_hooks.post_options) ();
|
||||
|
|
Loading…
Reference in New Issue