Bug 57419

Summary: Internal compiler error in reload_cse_simplify_operands
Product: [Retired] Red Hat Linux Reporter: Pavel Roskin <plroskin>
Component: gcc3Assignee: Jakub Jelinek <jakub>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-12-12 00:59:00 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:
Attachments:
Description Flags
This file shows the problem. I requires no includes. none

Description Pavel Roskin 2001-12-12 00:53:48 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.6+) Gecko/20011211

Description of problem:
gcc3 3.0.2 cannot compile Linux-2.4.17-pre8 - it gets an internal error in
reload_cse_simplify_operands when compiling 8193too.c for i686.

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


How reproducible:
Always

Steps to Reproduce:
1. Get the attached bug.c
2. gcc3 -O2 -fomit-frame-pointer -march=i686 -c bug.c
	

Actual Results:  bug.c: In function `netdev_ethtool_ioctl':
bug.c:1709: Unrecognizable insn:
(insn/i 445 997 994 (parallel[ 
            (set (reg:SI 6 ebp)
                (asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4;
sbbl $0,%0") ("=&r") 0[ 
                        (reg/v:SI 1 edx [121&)
                        (mem:SI (plus:SI (reg/f:SI 6 ebp)
                                (const_int -124 [0xffffff84&)) 0)
                        (mem/s:SI (plus:SI (reg:SI 0 eax [129&)
                                (const_int 12 [0xc&)) 4)
                    & 
                    [ 
                        (asm_input:SI ("1"))
                        (asm_input:SI ("g"))
                        (asm_input:SI ("g"))
                    &  ("bug.c") 1490))
            (set (reg/v:SI 1 edx [121&)
                (asm_operands:SI ("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4;
sbbl $0,%0") ("=r") 1[ 
                        (reg/v:SI 1 edx [121&)
                        (mem:SI (plus:SI (reg/f:SI 6 ebp)
                                (const_int -124 [0xffffff84&)) 0)
                        (mem/s:SI (plus:SI (reg:SI 0 eax [129&)
                                (const_int 12 [0xc&)) 4)
                    & 
                    [ 
                        (asm_input:SI ("1"))
                        (asm_input:SI ("g"))
                        (asm_input:SI ("g"))
                    &  ("bug.c") 1490))
            (clobber (reg:QI 19 dirflag))
            (clobber (reg:QI 18 fpsr))
            (clobber (reg:QI 17 flags))
        & ) -1 (insn_list 430 (insn_list 437 (nil)))
    (nil))
bug.c:1709: Internal compiler error in reload_cse_simplify_operands, at
reload1.c:8355
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.


Expected Results:  Compilation without errors or warnings.

Additional info:

All compiler flags are essential to reproduce the problem.  bug.c is a
result of preprocessing and simplifying of the 8193too driver.

Comment 1 Pavel Roskin 2001-12-12 00:57:13 UTC
Created attachment 40392 [details]
This file shows the problem. I requires no includes.

Comment 2 Jakub Jelinek 2001-12-18 15:50:51 UTC
This has been fixed in 3.0.3 AFAIK, but we switched to gcc 3.1 in rawhide,
so gcc3 won't be updated for this.