summaryrefslogtreecommitdiff
path: root/gcc/tree-complex.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-25 23:04:33 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-25 23:04:33 +0000
commitdb8615ef475a6310afbb8212f8789b237ffc0b6a (patch)
treea191cde8108b1af39f728fe3015def9fc06647b3 /gcc/tree-complex.c
parent2baa360f8f59683860d37d204a675edcfbe38d87 (diff)
downloadgcc-db8615ef475a6310afbb8212f8789b237ffc0b6a.tar.gz
PR 22626
* tree-complex.c (gate_no_optimization): True if errors. * Makefile.in (tree-complex.o): Update dependencies. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102373 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-complex.c')
-rw-r--r--gcc/tree-complex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c
index a675f0aa136..b72c37e7e78 100644
--- a/gcc/tree-complex.c
+++ b/gcc/tree-complex.c
@@ -31,6 +31,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#include "tree-iterator.h"
#include "tree-pass.h"
#include "tree-ssa-propagate.h"
+#include "diagnostic.h"
/* For each complex ssa name, a lattice value. We're interested in finding
@@ -1566,7 +1567,9 @@ tree_lower_complex_O0 (void)
static bool
gate_no_optimization (void)
{
- return optimize == 0;
+ /* With errors, normal optimization passes are not run. If we don't
+ lower complex operations at all, rtl expansion will abort. */
+ return optimize == 0 || sorrycount || errorcount;
}
struct tree_opt_pass pass_lower_complex_O0 =