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: "jpr at csc dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Nov 2006 19:16:02 -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 #4 from jpr at csc dot fi 2006-11-11 19:16 -------
Subject: Re: [4.3 Regression] -O2 gives wrong
results
Note however that the prints inside the main loop are not needed
to trigger the problem in the oroginal test code. You may freely
remove them and the problem remains. I just added the prints to
further demonstrate the problem...
Juha
>
>
> ------- 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
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29798