[Bug optimization/13653] [3.3 regression] -O2 -funroll-loop miscompiles POOMA testcase

rguenth at tat dot physik dot uni-tuebingen dot de gcc-bugzilla@gcc.gnu.org
Thu Jan 29 22:10:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list