diff options
author | Jie Zhang <jie@codesourcery.com> | 2010-03-29 13:06:50 +0000 |
---|---|---|
committer | Jie Zhang <jiez@gcc.gnu.org> | 2010-03-29 13:06:50 +0000 |
commit | 3b34d92c9cabd5249eacf0774980028defeffde0 (patch) | |
tree | 7acf3831a61124e3544b15880d258d529a66dc1c /gcc/opts.c | |
parent | 10fa280a98a0e0b2f3f155262a0886de314f46fc (diff) | |
download | gcc-3b34d92c9cabd5249eacf0774980028defeffde0.zip gcc-3b34d92c9cabd5249eacf0774980028defeffde0.tar.gz gcc-3b34d92c9cabd5249eacf0774980028defeffde0.tar.bz2 |
re PR other/43564 (ICE on code with optimize attribute and inlining)
PR 43564
* toplev.c (process_options): Set optimization_default_node
and optimization_current_node.
* opts.c (decode_options): Don't set optimization_default_node
and optimization_current_node.
testsuite/
PR 43564
* gcc.dg/pr43564.c: New test.
From-SVN: r157795
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1034,6 +1034,7 @@ decode_options (unsigned int argc, const char **argv) flag_pic = flag_pie; if (flag_pic && !flag_pie) flag_shlib = 1; + first_time_p = false; } if (optimize == 0) @@ -1112,13 +1113,6 @@ decode_options (unsigned int argc, const char **argv) flag_ira_algorithm = IRA_ALGORITHM_PRIORITY; } - /* Save the current optimization options if this is the first call. */ - if (first_time_p) - { - optimization_default_node = build_optimization_node (); - optimization_current_node = optimization_default_node; - first_time_p = false; - } if (flag_conserve_stack) { if (!PARAM_SET_P (PARAM_LARGE_STACK_FRAME)) |