https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83729
Bug ID: 83729 Summary: AVR ICE on convert_memory_address_addr_space_1 at explow.c:300 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: gandalf at winds dot org Target Milestone: --- Created attachment 43054 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43054&action=edit Preprocessed file gcc version 8.0.0 20180107 (experimental) (GCC) gcc svn r256323 Target: avr Configured with: ../configure --target=avr --prefix=/usr/local/avr --disable-nls --enable-languages=c --disable-bootstrap --disable-libssp Cross compiled on host using x86_64-pc-linux-gnu v7.2.0 ICE while compiling avr-libc svn r2546 Command: avr-gcc -save-temps -DHAVE_CONFIG_H -I. -I../../.. -I../../../common -I../../../include -I../../../include -Wall -W -Wstrict-prototypes -mmcu=avr2 -D__COMPILING_AVR_LIBC__ -mcall-prologues -Os -MT asctime_r.o -MD -MP -MF .deps/asctime_r.Tpo -c -o asctime_r.o ../../../libc/time/asctime_r.c -Wextra during RTL pass: expand ../../../libc/time/asctime_r.c: In function 'asctime_r': ../../../libc/time/asctime_r.c:57:16: internal compiler error: in convert_memory_address_addr_space_1, at explow.c:300 buffer[i] = ascdays[d++]; ~~~~~~~~~~^~~~~~~~~~~~~~ 0x51b973 convert_memory_address_addr_space_1(scalar_int_mode, rtx_def*, unsigned char, bool, bool) ../../gcc/explow.c:300 0x7ab83a convert_memory_address_addr_space_1(scalar_int_mode, rtx_def*, unsigned char, bool, bool) ../../gcc/explow.c:474 0x7ab83a convert_memory_address_addr_space(scalar_int_mode, rtx_def*, unsigned char) ../../gcc/explow.c:402 0x7ab83a memory_address_addr_space(machine_mode, rtx_def*, unsigned char) ../../gcc/explow.c:416 0x791824 change_address_1 ../../gcc/emit-rtl.c:2288 0x7c200f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10185 0x7c1a6c expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10586 0x7c492f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:9923 0x7cf6d3 store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool, tree_node*) ../../gcc/expr.c:5632 0x7d0f87 expand_assignment(tree_node*, tree_node*, bool) ../../gcc/expr.c:5400 0x6ad998 expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3692 0x6ad998 expand_gimple_stmt ../../gcc/cfgexpand.c:3790 0x6afdf7 expand_gimple_basic_block ../../gcc/cfgexpand.c:5810 0x6b52ae execute ../../gcc/cfgexpand.c:6416