diff options
author | Martin Liska <mliska@suse.cz> | 2016-07-08 09:52:03 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-07-08 07:52:03 +0000 |
commit | 2660286dcab0a72865faa3406c1e81572a1e42c8 (patch) | |
tree | 077fd0d189f5525c6d73a9798ee9442de39956ad /gcc/fold-const.c | |
parent | 70cdd4ae94a5db49774b64881e93b6c58ecc5574 (diff) | |
download | gcc-2660286dcab0a72865faa3406c1e81572a1e42c8.zip gcc-2660286dcab0a72865faa3406c1e81572a1e42c8.tar.gz gcc-2660286dcab0a72865faa3406c1e81572a1e42c8.tar.bz2 |
Do not consider COMPLEX_TYPE as fold_convertible_p
PR middle-end/71606
* fold-const.c (fold_convertible_p): As COMPLEX_TYPE
folding produces SAVE_EXPRs, thus return false for the type.
* gcc.dg/torture/pr71606.c: New test.
From-SVN: r238157
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index f97b8bf..ac051ff 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2192,7 +2192,6 @@ fold_convertible_p (const_tree type, const_tree arg) case REAL_TYPE: case FIXED_POINT_TYPE: - case COMPLEX_TYPE: case VECTOR_TYPE: case VOID_TYPE: return TREE_CODE (type) == TREE_CODE (orig); |