[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Miscompilation with GCC 4.5.1 / diagnosis andpossible
RE: [avr-gcc-list] Miscompilation with GCC 4.5.1 / diagnosis andpossible patch
Thu, 19 Aug 2010 03:55:36 -0600
Thanks, Owen. We're going to be taking a look into it.
Not so sure about the results of your patch... I could be wrong, but it looks
like it's generating some code that's not needed (addition a variable to 0),
plus another inefficiency.
But we'll go over this in the bug report comments.
> -----Original Message-----
> org] On Behalf Of Owen Taylor
> Sent: Monday, August 16, 2010 2:19 AM
> To: address@hidden
> Subject: [avr-gcc-list] Miscompilation with GCC 4.5.1 /
> diagnosis andpossible patch
> [ Not subscribed, please Cc: me on replies ]
> Ran into some miscompilation of 16-bit arithmetic with the AVR backend
> in stock GCC 4.5.1. A diagnosis and minimally tested patch can be
> found at:
> Debugging into the GCC internals was more entertaining than digging
> through collections of patches for GCC, so it may be that this is
> fixed somewhere and just not in upstream GCC. But if not, hopefully
> the above is useful.
> - Owen
> AVR-GCC-list mailing list