This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]