aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-01-20 14:25:51 +0100
committerRichard Biener <rguenther@suse.de>2022-01-20 16:50:34 +0100
commit5c12507f5d0bc080e4f346af99824e039236e61c (patch)
tree61747d6d9370e7df95b11c42e3bfd3e423594302 /gcc/fortran
parent62eb400b51f8a552320a250b3ac0b5d2ebd8927f (diff)
downloadgcc-5c12507f5d0bc080e4f346af99824e039236e61c.zip
gcc-5c12507f5d0bc080e4f346af99824e039236e61c.tar.gz
gcc-5c12507f5d0bc080e4f346af99824e039236e61c.tar.bz2
middle-end/100786 - constant folding from incompatible alias
The following avoids us ICEing doing constant folding from variables with aliases of different types. The issue appears both in folding and CCP and FRE can do more fancy stuff to still constant fold cases where the load is smaller than the initializer so defer it to there. 2022-01-20 Richard Biener <rguenther@suse.de> PR middle-end/100786 * gimple-fold.cc (get_symbol_constant_value): Only return values of compatible type to the symbol. * gcc.dg/torture/pr100786.c: New testcase.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions