This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/32140] [4.3 Regression] Miscompilation with -O1
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2007 18:26:25 -0000
- Subject: [Bug middle-end/32140] [4.3 Regression] Miscompilation with -O1
- References: <bug-32140-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-05-29 18:26 -------
Plus forwprop only does:
D.1046_37 = &(*__result.0_23)[0];
....
D.1048_41 = (char *) _s1_2(D);
D.1049_42 = D.1046_37 + D.1048_41;
Into:
D.1046_37 = &(*__result.0_23)[0];
...
D.1048_41 = (char *) _s1_2(D);
D.1049_42 = &(*__result.0_23)[_s1_2(D)];
Which is not wrong.
I wonder if my patch at:
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg01769.html
Fixes the issue.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32140