diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-02-15 00:10:00 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-02-15 00:10:00 +0000 |
commit | aa47290b049146ff769c0a574e0d4d44930e209e (patch) | |
tree | 18ec09d90fb77ac0d3f7100b09c78c6700285cec /gcc/gimple.c | |
parent | e73bea1cebabe2e142bfb84adbbc469a3334c65e (diff) | |
download | gcc-aa47290b049146ff769c0a574e0d4d44930e209e.zip gcc-aa47290b049146ff769c0a574e0d4d44930e209e.tar.gz gcc-aa47290b049146ff769c0a574e0d4d44930e209e.tar.bz2 |
re PR lto/52178 (Ada bootstrap failure in LTO mode)
PR lto/52178
* gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
(iterative_hash_canonical_type): Likewise.
* tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
the dead edges.
From-SVN: r184246
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r-- | gcc/gimple.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c index 9a6ed67..805ad2d 100644 --- a/gcc/gimple.c +++ b/gcc/gimple.c @@ -4140,9 +4140,7 @@ iterative_hash_gimple_type (tree type, hashval_t val, v = iterative_hash_hashval_t (na, v); } - if (TREE_CODE (type) == RECORD_TYPE - || TREE_CODE (type) == UNION_TYPE - || TREE_CODE (type) == QUAL_UNION_TYPE) + if (RECORD_OR_UNION_TYPE_P (type)) { unsigned nf; tree f; @@ -4373,9 +4371,7 @@ iterative_hash_canonical_type (tree type, hashval_t val) v = iterative_hash_hashval_t (na, v); } - if (TREE_CODE (type) == RECORD_TYPE - || TREE_CODE (type) == UNION_TYPE - || TREE_CODE (type) == QUAL_UNION_TYPE) + if (RECORD_OR_UNION_TYPE_P (type)) { unsigned nf; tree f; |