[Bug middle-end/83729] [8 Regression] AVR ICE on convert_memory_address_addr_space_1 at explow.c:300
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 11 13:54:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83729
--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to gandalf from comment #3)
> Another regression test case (compile with -O):
>
> void code_to_ascii(char buf[1], unsigned int code)
> {
> __attribute__((used))
> static const char __flash test[5]="ABCDE";
>
> static const char __flash code_tab[32]="0123456789ABCDEFGHJKLMNPRSTUWXYZ";
>
> buf[0]=code_tab[code];
> }
>
> Variable "code_tab" is incorrectly placed in section .rodata.
Different issue, likely a target thing. Filed as PR83801.
More information about the Gcc-bugs
mailing list