Created attachment 33286 [details]
Preprocessed source triggering the issue
When compiling the SVN version of avr-libc, I get the following ICE:
% env LANG=C avr-gcc -gdwarf-2 -Wall -W -Wstrict-prototypes -mmcu=avr2 -mcall-prologues -Os -S strftime.i
../../../libc/time/strftime.c: In function 'pgm_copystring':
../../../libc/time/strftime.c:56:1: internal compiler error: in convert_debug_memory_address, at cfgexpand.c:2528
pgm_copystring(const char __memx * p, unsigned char i, char *b, unsigned char l)
no stack trace because unwind library not available
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
This can also be observed with GCC 4.8.3.
Omitting the -gdwarf-2 option makes the issue go away.
Looks like PR52472, are your sources up to date?
CC'ing Jeff as he also fixed PR52472...
ICE with Jörg's code for 4.9.2and 5.0 (from 2014-09-12 SVN 215212)
Marek, would you give a pointer for why this is a target issue and what the backend should do to fix it? Thanks.
Looking at this again, this might be a "debug" issue instead rather than "target".
Not reproducible with the latest trunk build (gcc version 5.0.0 20150102)