[Bug target/85805] Improper code generation for 64 bit comparisons on avr-gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 --- Comment #5 from Sandor Zsuga --- I received a test report with avr-gcc 8.1.0 , -O2 optimization level: The behavior is present ( https://www.avrfreaks.net/comment/2477081#comment-2477081 ).
[Bug target/85805] Improper code generation for 64 bit comparisons on avr-gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 --- Comment #4 from Sandor Zsuga --- I tried it with the package offered by Microchip, which has avr-gcc 5.4.0, the behavior is the same, bug is present.
[Bug target/85805] Improper code generation for 64 bit comparisons on avr-gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 --- Comment #3 from Sandor Zsuga --- I don't have reasonably easy access to a newer version as it doesn't seem like there were precompiled binaries available for Linux which I could try without much hassle. If someone had one laying around, I would appreciate if he gave a go to the sample with an avr-gcc -S -O1 sample.c where sample.c contained the code above. The resulting assembly file would show whether the particular GCC version was affected.
[Bug target/85805] Improper code generation for 64 bit comparisons on avr-gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 --- Comment #2 from Sandor Zsuga --- Tested on a different machine: avr-gcc (GCC) 4.9.2 This is what comes with Debian Jessie. The behavior is present (function compiles to a single "ret").
[Bug target/85805] Improper code generation for 64 bit comparisons on avr-gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805 Richard Biener changed: What|Removed |Added Keywords||wrong-code Target||avr Status|UNCONFIRMED |WAITING Last reconfirmed||2018-05-16 Component|c |target Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Note GCC 4.8 is long out of maintainance and GCC 4.8.1 is a particularly old version from the branch. Please try a still supported compiler which would be GCC 6.4, GCC 7.3 or GCC 8.1. If you can't do that please try at least the latest GCC 4.8 based compiler which is GCC 4.8.5.