[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#800318: gcc-5: [mips,mipsel] regression: miscompilation caused by -fexpensive-optimizations


On 28.09.2015 21:52, Aurelien Jarno wrote:
> On 2015-09-28 18:17, Andreas Cadhalpun wrote:
>> Attached is a testcase for mips, but it works fine for mipsel.
>> One more peculiarity I noticed is that adding 'c->A = 1;' to
>> an unused code path inverts the behavior: It works with
>> -fexpensive-optimizations, but fails with -fno-expensive-optimizations.
> Big thanks for working on that. I have done some tests with it and
> -mtune=mips32r2 is the culprit not -march=mips32r2. This is kind of
> unexpected, but at least it is consistent with the mipsel issue. This
> means the optimization happens when scheduling the instructions. This
> also means we have an easy workaround without lowering the ISA. I'll
> commit that so that's in the next gcc upload.

Great. Can you estimate when that upload will happen?
(I'm trying to decide whether or not to workaround it in the meantime.)

> I'll also try to better understand the issue so that I can report the
> bug upstream.


Best regards,

Reply to: