avr-gcc error: could not split insn

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

Bug Description

Greetings,

I seem to be hitting this bug:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47509

on the Ubuntu package on precise.

For now, I worked it around by using -O1, but that's not very good for embedded, -Os will be better, but it fails:

avr-gcc -Wall -mmcu=atmega1284p -g -fpack-struct -Os -funsigned-char -funsigned-bitfields -mcall-prologues -Wstrict-prototypes -std=gnu99 -I. -I../..//apps/dhcpc -I../..//apps/port_app_mapper -I../..//apps/resolv -I../..//apps/telnetd -I../..//apps/webclient.PROGMEM -I../..//apps/webserver.PROGMEM -I../..//drivers/enc28j60.tux -I../..//libs/avrlib-avrlib-conf -I../..//libs/memb -I../..//libs/net_conf -I../..//libs/prod_conf -I../..//libs/websrv_helper_functions -I../..//libs/webstrings_common.PROGMEM -I../..//drivers/interfaces -I../..//libs/interfaces -I../..//uip -c ../..//apps/port_app_mapper/port_app_mapper.c -o obj/port_app_mapper.o
../..//apps/port_app_mapper/port_app_mapper.c: In function ‘uip_port_app_mapper’:
../..//apps/port_app_mapper/port_app_mapper.c:93:1: error: could not split insn
(insn 67 66 68 ../..//apps/port_app_mapper/port_app_mapper.c:85 (parallel [
            (set (reg:HI 16 r16 [86])
                (rotate:HI (reg:HI 16 r16 [orig:74 D.3131 ] [74])
                    (const_int 8 [0x8])))
            (clobber (mem/c:QI (plus:HI (reg/f:HI 28 r28)
                        (const_int 1 [0x1])) [10 %sfp+1 S1 A8]))
        ]) 936 {*rotbhi} (nil))
../..//apps/port_app_mapper/port_app_mapper.c:93:1: internal compiler error: in final_scan_insn, at final.c:2650
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [obj/port_app_mapper.o] Error 1

I'm compiling avr-uip, from here:

http://code.google.com/p/avr-uip/

It would be good to either upgrade the version, or backport the patch.

Thanks!

Ildefonso Camargo

Revision history for this message
Ildefonso Camargo (icamargo) wrote :

Sorry, pasted the wrong URL:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49487

That's the bug on gcc. Well, the link was on the other bug too, but here is the direct link just in case.

Also, the patch seems to be this one:

http://gcc.gnu.org/viewcvs?view=revision&revision=176277

Ildefonso.

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.