Hide Forgot
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:
Created attachment 815051 [details] nd-h8300.c file from compile
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
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
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?
FYI I've reproduced this with upstream gcc version 4.9.0 20131016.
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.
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.