aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/debug.adb
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-07-09 16:03:45 +0200
committerRichard Biener <rguenther@suse.de>2020-07-10 10:52:47 +0200
commit6e41c27bf549d957eb399d39d7d0c213f8733351 (patch)
treebfd509af5c0156df1f28bc7c79a85132ac7e4802 /gcc/ada/debug.adb
parentba9c87d3255f168db811dd1fa69e5011d4e8194f (diff)
downloadgcc-6e41c27bf549d957eb399d39d7d0c213f8733351.zip
gcc-6e41c27bf549d957eb399d39d7d0c213f8733351.tar.gz
gcc-6e41c27bf549d957eb399d39d7d0c213f8733351.tar.bz2
fix constant folding from array CTORs
This fixes the case where we try to fold a read from an array initalizer and happen to cross the boundary of multiple CTORs which isn't really supported. For the interesting cases like the testcase we actually handle the folding by encoding the whole initializer. 2020-07-10 Richard Biener <rguenther@suse.de> PR tree-optimization/96133 * gimple-fold.c (fold_array_ctor_reference): Do not recurse to folding a CTOR that does not fully cover the asked for object. * gcc.dg/torture/pr96133.c: New testcase.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions