https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92606

--- Comment #17 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Georg-Johann Lay from comment #3)
> Created attachment 47485 [details]
> 123f.c: C test case with address space __flash.
> 
> ...and the code is also wrong with address spaces like __flash (and the same
> options like in comment #1):
> 
> $ avr-gcc -mmcu=atmega128 123f.c -flto -Os -save-temps -o 123f.elf

Note you don't need -flto if you change xyz be static.

Reply via email to