Bug 662054

Summary: avr-gcc error: could not split insn
Product: [Fedora] Fedora Reporter: Jakob Hirsch <jh.redhat-2018>
Component: avr-gccAssignee: Thibault North <thibault.north>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 14CC: rhbugs, thibault.north, trond.danielsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: avr-gcc-4.6.1-2.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-10 23:59:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jakob Hirsch 2010-12-10 13:04:08 UTC
Description of problem:

avr-gcc 4.5.1-2.fc14.1 stops with an error message:

avr-gcc -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-char-subscripts -g -Os -std=gnu99 -fdata-sections -ffunction-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -mcall-prologues -fshort-enums -fno-strict-aliasing -Iprotocols/usb/usbdrv -Iprotocols/usb -DAVR_BUILD -DF_CPU=20000000UL -mmcu=atmega644 -I.  -c -o protocols/uip/uip.o protocols/uip/uip.c
protocols/uip/uip.c: In function 'uip_udp_new':
protocols/uip/uip.c:570:1: error: could not split insn
(insn 106 105 107 protocols/uip/uip.c:554 (parallel [
            (set (reg:HI 24 r24 [106])
                (rotate:HI (reg:HI 24 r24 [orig:105 lastport ] [105])
                    (const_int 8 [0x8])))
            (clobber (mem/c:QI (plus:HI (reg/f:HI 28 r28)
                        (const_int 1 [0x1])) [0 %sfp+1 S1 A8]))
        ]) 64 {*rotbhi} (expr_list:REG_EQUIV (mem/s/j:HI (plus:HI (reg/f:HI 26 r26 [103])
                (const_int 4 [0x4])) [0 uip_udp_conns[D.4587_20].lport+0 S2 A8])
        (nil)))
protocols/uip/uip.c:570:1: internal compiler error: in final_scan_insn, at final.c:2650
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugzilla.redhat.com/> for instructions.
make: *** [protocols/uip/uip.o] Error 1


It compiles fine with 4.4.2-1.fc13 and also 4.3.3-3.fc11.


Version-Release number of selected component (if applicable):

avr-libc-1.7.0-1.fc14.noarch
avr-gcc-4.5.1-2.fc14.1.x86_64


How reproducible:

always


Steps to Reproduce:
1. git clone git://github.com/ethersex/ethersex.git

2. cd ethersex/

3. make menuconfig
-> Make sure that "UDP support" is activated in "Network", then select Exit and save the config

4. make

  
Actual results:

compiler reports an internal compiler error and stops.


Expected results:

compilation of source.

Additional info:

Comment 1 Thibault North 2011-01-12 15:48:16 UTC
I could reproduce the bug. (Sorry for the delay)

Does it compile fine with old avr-gcc but the new avr-libc?
I will also try with avr-gcc-4.5.2.

Comment 2 Thibault North 2011-01-12 16:22:26 UTC
Hmm, yes it seem to depend only on avr-gcc.
The new release 4.5.2 does not fix the problem.

I am quite busy these days. I will try and file a bug against gcc. If you have time to do so, please do.

Comment 3 Jakob Hirsch 2011-01-29 15:33:57 UTC
(In reply to comment #2)
> I am quite busy these days. I will try and file a bug against gcc. If you have
> time to do so, please do.

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

Comment 4 Thibault North 2011-05-01 17:57:42 UTC
Thanks.

By the way, it seems to compile with -O1:
sed -e "s|Os|O1|" scripts/defaults.mk

Comment 5 Fedora Update System 2011-09-01 18:09:55 UTC
avr-gcc-4.6.1-2.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/avr-gcc-4.6.1-2.fc16

Comment 6 Fedora Update System 2011-09-01 18:10:04 UTC
avr-gcc-4.6.1-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/avr-gcc-4.6.1-2.fc15

Comment 7 Fedora Update System 2011-09-02 05:29:20 UTC
Package avr-gcc-4.6.1-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing avr-gcc-4.6.1-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/avr-gcc-4.6.1-2.fc15
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2011-09-10 23:59:52 UTC
avr-gcc-4.6.1-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2011-09-11 01:45:01 UTC
avr-gcc-4.6.1-2.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.