avr-gcc internal compiler error

Bug #1261109 reported by haigh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-avr (Ubuntu)
New
Undecided
Unassigned

Bug Description

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.