[superh-gnu-discuss] optimization problem with 4.4-200

Andrew Stubbs ams at codesourcery.com
Mon Oct 18 13:55:29 UTC 2010


On 18/10/10 14:03, Akira Kobayashi wrote:
> When compiling the attached code with optimization option (-O1, -O2, 
> -O3, -Os), the result was different from the result of no optimization 
> (-O0).
> Will this problem be fixed in the next release?

I can't reproduce this problem with either 4.4-200, or the upcoming new
version. I have compiled your test case for Little Endian SH-4A, at all
optimization levels, and without any other options.

Are you sure there's not something else happening here?

In any case, the new Lite edition compiler (to be released in a few
weeks) will be based on GCC 4.5 - a major update, so I would be
surprised if it suffered from exactly the same problems.

Thank you for reporting the problem.

Andrew Stubbs
CodeSourcery



More information about the superh-gnu-discuss mailing list