http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56164
Bug #: 56164 Summary: avr-gcc 4.7.2 fail with __flash keyword Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: critical Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: demiurg_...@freemail.ru Problem is present with __flash keyword, with PROGMEM everything is ok. Compiller output: ================================================================== module.c: In function 'foo': module.c:52:1: error: unable to find a register to spill in class 'BASE_POINTER_REGS' module.c:52:1: error: this is the insn: (insn 73 72 74 5 (set (reg:SF 66 [ D.1445 ]) (unspec:SF [ (reg:HI 30 r30) (const_int 0 [0]) ] UNSPEC_LPM)) module.c:28 9 {load_sf} (expr_list:REG_DEAD (reg:HI 30 r30) (nil))) module.c:52: confused by earlier errors, bailing out make.EXE: *** [../bin/test/test.elf] Error 1 ==================================================================