This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/29798] [4.3 Regression] -O2 gives wrong results
- 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: 11 Nov 2006 14:11:18 -0000
- Subject: [Bug rtl-optimization/29798] [4.3 Regression] -O2 gives wrong results
- References: <bug-29798-11807@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-11-11 14:11 -------
If we don't use it when the variable is uninitialized, we get the desired
result (note how I did not say the correct result as I think this code is
undefined and what we are getting is allowed by the C standard).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29798