This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19056] 4.0 optimizes away a SEGV; 3.4.1 does not
- 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: 17 Dec 2004 15:18:58 -0000
- Subject: [Bug c/19056] 4.0 optimizes away a SEGV; 3.4.1 does not
- References: <20041217151455.19056.bh@techhouse.brown.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-17 15:18 -------
The code is undefined, once you get into that, anything can happen so closing as invalid.
We just optimize away the add and the load since the load is no longer needed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19056