Bug 1022071 - internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
Summary: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gcc
Version: 6.4
Hardware: other
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-22 15:20 UTC by Matthew Whitehead
Modified: 2014-02-04 18:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-04 18:57:39 UTC
Target Upstream Version:


Attachments (Terms of Use)
ne-h8300.i file from compilation. (1.07 MB, text/plain)
2013-10-22 15:20 UTC, Matthew Whitehead
no flags Details
nd-h8300.c file from compile (19.62 KB, text/x-csrc)
2013-10-22 15:21 UTC, Matthew Whitehead
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.