[Bug tree-optimization/41089] [4.5 Regression] r147980 (New SRA) breaks stdargs
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Sep 10 22:12:00 GMT 2009
------- Comment #25 from rguenth at gcc dot gnu dot org 2009-09-10 22:12 -------
The first store to ap.offset is dead.
<bb 5>:
# iftmp.0_1 = PHI <iftmp.0_7(3), iftmp.0_8(4)>
D.2024_9 = D.2018_5 + iftmp.0_1;
D.2017_10 = D.2017_4 + 8;
D.2025_11 = (int) D.2017_10;
ap.__offset = D.2025_11;
D.2026_12 = *D.2024_9;
x.1_13 = (long int) D.2026_12;
x = x.1_13;
D.2028_16 = (long int) D.2025_11;
D.2029_17 = (int *) D.2015_2;
D.2030_18 = (long unsigned int) D.2028_16;
D.2031_19 = D.2029_17 + D.2030_18;
D.2028_20 = D.2028_16 + 8;
D.2032_21 = (int) D.2028_20;
ap.__offset = D.2032_21;
So if tree-stdarg relies on it it's bogus.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41089
More information about the Gcc-bugs
mailing list