Re: Miscompilation (gcc + inline asmb)

2021-09-10 Thread Ian Molton
On 15/08/2021 18:34, BERTRAND Joël wrote: > I remember I have used uECC a long time ago without this kind of bug. I > have rebuilt the same code (with uECC_avr defined), but I have compiled > this library not with gcc 11.1.0, but with 5.4.0. Just curious - what is the difference in the assem

Re: Miscompilation (gcc + inline asmb)

2021-08-15 Thread BERTRAND Joël
Some news. I remember I have used uECC a long time ago without this kind of bug. I have rebuilt the same code (with uECC_avr defined), but I have compiled this library not with gcc 11.1.0, but with 5.4.0. And I obtain : simavr -t -m atmega1284 -f 1600 test2.elf Loaded

Re: Miscompilation (gcc + inline asmb)

2021-08-15 Thread BERTRAND Joël
Some news. I remember I have used uECC a long time ago without this kind of bug. I have rebuilt the same code (with uECC_avr defined), but I have compiled this library not with gcc 11.1.0, but with 5.4.0. And I obtain : simavr -t -m atmega1284 -f 1600 test2.elf Loaded

Re: Miscompilation (gcc + inline asmb)

2021-08-13 Thread BERTRAND Joël
Some news. I have uploaded a simple example at https://hilbert.systella.fr/public/test_uecc.tar.gz This tarball contains minimal code to trigger this issue, makefile and two asmb output : - ok.asm - ko.asm ok.asm runs as expected and was built with #define uECC_PL