diff options
author | Jan Hubicka <jh@suse.cz> | 2008-07-29 13:00:58 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-07-29 11:00:58 +0000 |
commit | e90acd935ae25e9b11a6028f889db17c7760572a (patch) | |
tree | 715f5730772c8971b1400db96ba484d331fea296 /gcc/opts.c | |
parent | bf08ebebc7fb2f16aa6095a10987196cb4267a78 (diff) | |
download | gcc-e90acd935ae25e9b11a6028f889db17c7760572a.zip gcc-e90acd935ae25e9b11a6028f889db17c7760572a.tar.gz gcc-e90acd935ae25e9b11a6028f889db17c7760572a.tar.bz2 |
flags.h (flag_really_no_inline): Remove.
* flags.h (flag_really_no_inline): Remove.
* cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
* toplev.c (flag_really_no_inline): Remove.
* c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
* ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
(cgraph_decide_inlining_incrementally): Likewise.
(compute_inline_parameters): Likewise.
* opts.c (decode_options): Simplify.
* c-opts.c (c_common_post_options): Do not set flag_no_inline.
* common.opt (finline): Initialize to 1.
* tree-inline.c (inlinable_function_p): Check flag_no_inline.
* lang.c (java_post_options): Remove handling of flag_no_inline.
* misc.c (gnat_post_options): Do not set flag_no_inline.
* options.c (gfc_post_options): Do not set flag_no_inline.
From-SVN: r138238
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -1072,24 +1072,14 @@ decode_options (unsigned int argc, const char **argv) flag_pic = flag_pie; if (flag_pic && !flag_pie) flag_shlib = 1; - - 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 - 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, so force it not to be done. */ - flag_no_inline = 1; warn_inline = 0; + flag_no_inline = 1; /* The c_decode_option function and decode_option hook set this to `2' if -Wall is used, so we can avoid giving out @@ -1099,9 +1089,6 @@ decode_options (unsigned int argc, const char **argv) "-Wuninitialized is not supported without -O"); } - if (flag_really_no_inline == 2) - flag_really_no_inline = flag_no_inline; - /* The optimization to partition hot and cold basic blocks into separate sections of the .o and executable files does not work (currently) with exception handling. This is because there is no support for |