Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1022071

Summary: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
Product: Red Hat Enterprise Linux 6 Reporter: Matthew Whitehead <mwhitehe>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: dj, law, mpolacek
Target Milestone: rc   
Target Release: ---   
Hardware: other   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-04 18:57:39 UTC Type: Bug
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
ne-h8300.i file from compilation.
none
nd-h8300.c file from compile none

Description Matthew Whitehead 2013-10-22 15:20:09 UTC
Created attachment 815050 [details]
ne-h8300.i file from compilation.

Description of problem: Internal compiler error generated from presumably valid code.

Cross-compiling drivers/net/ethernet/8390/ne-h8300.c for H8300 architecture provided the following:

drivers/net/ethernet/8390/ne-h8300.c: In function ‘init_module’:
drivers/net/ethernet/8390/ne-h8300.c:670:4: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat]
drivers/net/ethernet/8390/ne-h8300.c: In function ‘ne_block_input’:
drivers/net/ethernet/8390/ne-h8300.c:507:1: error: insn does not satisfy its constraints:
(insn 414 413 415 45 (parallel [
            (set (cc0)
                (compare (zero_extract:SI (zero_extend:SI (mem/c:QI (plus:SI (reg/f:SI 7 sp)
                                    (const_int 3 [0x3])) [0 %sfp+-1 S1 A8]))
                        (const_int 1 [0x1])
                        (and:SI (reg:SI 5 r5 [orig:447 D.30132 ] [447])
                            (const_int 7 [0x7])))
                    (const_int 0 [0])))
            (clobber (scratch:QI))
        ]) /mnt/software/git/net-next/arch/h8300/include/asm/io.h:159 112 {*tstsi_variable_bit_qi}
     (nil))
drivers/net/ethernet/8390/ne-h8300.c:507:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla/> for instructions.




Version-Release number of selected component (if applicable): gcc-h8300-linux-gnu-4.7.2-2.aa.20121114svn.el6.1.x86_64


How reproducible: 100%


Steps to Reproduce:
1. make ARCH=h8300 drivers/net/ethernet/8390/ne-h8300.o
2.
3.

Actual results: Compiler crashes.


Expected results: Compiler should not crash.


Additional info:

Comment 1 Matthew Whitehead 2013-10-22 15:21:49 UTC
Created attachment 815051 [details]
nd-h8300.c file from compile

Comment 3 Matthew Whitehead 2013-10-22 17:21:04 UTC
Here is the command line:

/usr/bin/h8300-linux-gnu-gcc -Wp,-MD,drivers/net/ethernet/8390/.ne-h8300.o.d  -nostdinc -isystem /usr/lib/gcc/h8300-elf/4.7.2/include -I/mnt/software/git/net-next/arch/h8300/include -Iarch/h8300/include/generated  -Iinclude -I/mnt/software/git/net-next/arch/h8300/include/uapi -Iarch/h8300/include/generated/uapi -I/mnt/software/git/net-next/include/uapi -Iinclude/generated/uapi -include /mnt/software/git/net-next/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -mh -mint32 -fno-builtin -g -D__linux__ -DUTS_SYSNAME=\"uClinux\" -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ne_h8300)"  -D"KBUILD_MODNAME=KBUILD_STR(ne_h8300)" -c -o drivers/net/ethernet/8390/ne-h8300.o drivers/net/ethernet/8390/ne-h8300.c

Comment 4 Matthew Whitehead 2013-10-22 17:26:34 UTC
And now the cc1 command, gleaned by adding '-v' to CFLAGS

/usr/libexec/gcc/h8300-elf/4.7.2/cc1 -quiet -nostdinc -v -I /mnt/software/git/net-next/arch/h8300/include -I arch/h8300/include/generated -I include -I /mnt/software/git/net-next/arch/h8300/include/uapi -I arch/h8300/include/generated/uapi -I /mnt/software/git/net-next/include/uapi -I include/generated/uapi -imultilib h8300h/int32 -D __KERNEL__ -D __linux__ -D UTS_SYSNAME="uClinux" -D CC_HAVE_ASM_GOTO -D MODULE -D KBUILD_STR(s)=#s -D KBUILD_BASENAME=KBUILD_STR(ne_h8300) -D KBUILD_MODNAME=KBUILD_STR(ne_h8300) -isystem /usr/lib/gcc/h8300-elf/4.7.2/include -include /mnt/software/git/net-next/include/linux/kconfig.h -MD drivers/net/ethernet/8390/.ne-h8300.o.d drivers/net/ethernet/8390/ne-h8300.c -quiet -dumpbase ne-h8300.c -mh -mint32 -auxbase-strip drivers/net/ethernet/8390/ne-h8300.o -g -O2 -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror=implicit-function-declaration -Wno-format-security -Wframe-larger-than=1024 -Wno-unused-but-set-variable -Wdeclaration-after-statement -Wno-pointer-sign -version -fno-strict-aliasing -fno-common -fno-delete-null-pointer-checks -fno-builtin -fno-stack-protector -fomit-frame-pointer -fno-strict-overflow -fconserve-stack -o /tmp/ccfXhTEQ.s

Comment 5 Jakub Jelinek 2013-10-22 17:30:44 UTC
The h8300 compiler isn't shipped (and thus not supported) in any RHEL.
Perhaps you want to file this against Fedora cross-gcc and CC GES people, or file it upstream?

Comment 6 DJ Delorie 2013-10-22 18:19:17 UTC
FYI I've reproduced this with upstream gcc version 4.9.0 20131016.

Comment 7 RHEL Program Management 2013-10-25 18:35:37 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 8 Jeff Law 2014-02-04 18:57:39 UTC
Per c#5.  

Matthew, if you want this fixed, you really need to take it upstream as we haven't and probably never will support the H8/300 compilers.