This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jan 2004 22:10:20 -0000
- Subject: [Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase
- References: <20040112101346.13653.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2004-01-29 22:10 -------
Subject: Re: [3.3 regression] -O2 -funroll-loop
miscompiles POOMA testcase
On Thu, 29 Jan 2004, dberlin at gcc dot gnu dot org wrote:
> I'll attach my even *more* reduced testcase, but that only passes at -O2 and
> fails at -O2 -funroll-loops (IE it doesn't pass at -O0 or -O1)
That does hint to maybe a stack corruption or somehow. That would be
consistent with my observation that the original testcase fails only, if I
enable assertions in the code, if I disable them and they get #ifdef'ed
away, the failure does not occour.
So it may be interesting to look at the generated assembly of the main
function and looking for corrupt stack after calls?
Richard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13653