Public bug reported: There is a bug in avr-gcc (version 4.7.2) that is fixed in 4.8.2. It seems to be the same as bug 52488 (from 4.7.0; http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52488).
gcc command line: avr-gcc -mmcu=attiny24 -O2 error.c Code: #include <avr/io.h> int main() { int i=0; char buf[128]; while((buf[i] != 0) && (++i < sizeof(buf))) buf[i] = PINA; } Error: error.c: In function ‘main’: error.c:9:1: error: unrecognizable insn: (insn/f 68 67 69 2 (set (reg:QI 28 r28) (plus:QI (reg:QI 28 r28) (const_int 128 [0x80]))) error.c:4 -1 (expr_list:REG_CFA_ADJUST_CFA (set (reg/f:HI 28 r28) (plus:HI (reg/f:HI 28 r28) (const_int -128 [0xffffffffffffff80]))) (nil))) error.c:9:1: internal compiler error: in extract_insn, at recog.c:2123 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. ** Affects: gcc-avr (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1261109 Title: avr-gcc internal compiler error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-avr/+bug/1261109/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs