summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorDavid Li <davidxl@google.com>2011-06-09 16:09:23 +0000
committerXinliang David Li <davidxl@gcc.gnu.org>2011-06-09 16:09:23 +0000
commitbdf67bcba3ccc715da89128200d06140943f33b4 (patch)
tree4df88ba9bea41f8d545aabd4a90d1d88d969a1e6 /gcc/tree-complex.c
parent0d1d0dc8aa325982f4a07d79bce1a5b21e71d4ab (diff)
Gator cleanup
From-SVN: r174848
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index ec2b438ca47..34298517eff 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -1569,6 +1569,11 @@ tree_lower_complex (void)
gimple_stmt_iterator gsi;
basic_block bb;
+ /* With errors, normal optimization passes are not run. If we don't
+ lower complex operations at all, rtl expansion will abort. */
+ if (cfun->curr_properties & PROP_gimple_lcx)
+ return 0;
+
if (!init_dont_simulate_again ())
return 0;
@@ -1634,9 +1639,7 @@ struct gimple_opt_pass pass_lower_complex =
static bool
gate_no_optimization (void)
{
- /* With errors, normal optimization passes are not run. If we don't
- lower complex operations at all, rtl expansion will abort. */
- return !(cfun->curr_properties & PROP_gimple_lcx);
+ return true;
}
struct gimple_opt_pass pass_lower_complex_O0 =