http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31981
Andrew Pinski changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-07-01 01:22 ---
> OFFSET + &OBJ.
Well pointer plus was merged so it is always &OBJ + OFFSET :).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31981
--- Comment #3 from rguenth at gcc dot gnu dot org 2007-05-25 11:21 ---
Indeed with -fno-tree-ccp the testcase is optimized by forwprop1 to
:
D.2000_3 = i_2(D) * 4;
D.2001_4 = (int *) D.2000_3;
D.2002_5 = &b.t[i_2(D)];
*D.2002_5 = 1;
return;
and then by forwprop2 to
:
D.20
--- Comment #2 from rguenth at gcc dot gnu dot org 2007-05-24 11:09 ---
Actually this is just a tree-combining issue. CCP already transforms this to
c_1 = &b.t[0];
D.2000_3 = i_2(D) * 4;
D.2001_4 = (int *) D.2000_3;
D.2002_5 = D.2001_4 + &b.t[0];
*D.2002_5 = 1;
not combining
--- Comment #1 from rguenth at gcc dot gnu dot org 2007-05-24 10:54 ---
is this fixed on pointer_plus branch? Confirmed on the mainline.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
---
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31981