https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71103
Bug ID: 71103 Summary: avr-gcc crashes with unrecognizable insn error Product: gcc Version: unknown Status: UNCONFIRMED Severity: major Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: pitchumani.s at hotmail dot com Target Milestone: --- struct ResponseStruct{ unsigned char responseLength; char *response; }; static char response[5]; struct ResponseStruct something(){ struct ResponseStruct returnValue; returnValue.responseLength = 5; returnValue.response = response; return returnValue; } avr-gcc crashes when optimization is enabled for this test case. $ avr-gcc test.c -mmcu=atmega1280 -O1 test.c: In function 'something': test.c:12:1: error: unrecognizable insn: } ^ (insn 6 5 7 2 (set (subreg:QI (reg:PSI 42 [ D.1499 ]) 1) (subreg:QI (symbol_ref:HI ("response") [flags 0x2] <var_decl 0x7f183c702900 response>) 0)) test.c:11 -1 (nil)) test.c:12:1: internal compiler error: in extract_insn, at recog.c:2287 0xd51195 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /home/rudran/code/gcc/gcc/rtl-error.c:108