From 3b34d92c9cabd5249eacf0774980028defeffde0 Mon Sep 17 00:00:00 2001 From: Jie Zhang Date: Mon, 29 Mar 2010 13:06:50 +0000 Subject: 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 --- gcc/toplev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index fb3c4b2..a789383 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2148,6 +2148,10 @@ process_options (void) "for correctness"); flag_omit_frame_pointer = 0; } + + /* Save the current optimization options. */ + optimization_default_node = build_optimization_node (); + optimization_current_node = optimization_default_node; } /* This function can be called multiple times to reinitialize the compiler -- cgit v1.1