This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30785] Test to null pointer optimised away at -O2
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2007 20:55:36 -0000
- Subject: [Bug c/30785] Test to null pointer optimised away at -O2
- References: <bug-30785-1034@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2007-03-10 20:55 -------
Reopening. It's fixed for 64bit systems but not 32bit ones!? vrp dump
difference:
Visiting statement:
-D.1617_3 = pDest_2 == 0B;
+D.1286_3 = pDest_2 == 0B;
-Found new range for D.1617_3: VARYING
+Found new range for D.1286_3: [0, 0]
Visiting statement:
-D.1618_5 = pSrc_4 == 0B;
+D.1287_5 = pSrc_4 == 0B;
-Found new range for D.1618_5: VARYING
+Found new range for D.1287_5: [0, 0]
Visiting statement:
-D.1619_6 = D.1617_3 || D.1618_5;
+D.1288_6 = D.1286_3 || D.1287_5;
-Found new range for D.1619_6: VARYING
+Found new range for D.1288_6: [0, 0]
and now bad things happen...
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30785