https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119630

            Bug ID: 119630
           Summary: ICE compiling Linux with h8300-linux compiler
           Product: gcc
           Version: 14.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: wbx at openadk dot org
  Target Milestone: ---

Created attachment 61000
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61000&action=edit
locks.c preprocessed

Hi,

when cross-compiling Linux 4.4.302 for h8300 (targeting gdb simulator h8s) I
get an ICE.
This worked in 13.3.0 fine.
Here is the backtrace:

wbx@helium:~/openadk/build_sim-h8s_uclibc-ng_flat_nommu/linux$
/home/wbx/openadk/toolchain_sim-h8s_uclibc-ng_flat_nommu/usr/bin/h8300-openadk-linux-uclibc-gcc
-Wp,-MD,fs/.locks.o.d -nostdinc -isystem
/home/wbx/openadk/toolchain_sim-h8s_uclibc-ng_flat_nommu/usr/lib/gcc/h8300-openadk-linux-uclibc/14.2.0/include
-I./arch/h8300/include -Iarch/h8300/include/generated/uapi
-Iarch/h8300/include/generated  -Iinclude -I./arch/h8300/include/uapi
-Iarch/h8300/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi
-include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE
-ms -mint32 -fno-builtin -D__linux__ -DUTS_SYSNAME=\"uClinux\"
-fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation
-Wno-format-overflow -Wno-int-in-bool-context -Wno-address-of-packed-member
-Wno-attribute-alias -Os -fno-allow-store-data-races -DCC_HAVE_ASM_GOTO
-Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable
-Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls
-fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign
-Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds
-Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized
-fno-strict-overflow -fno-merge-all-constants -fmerge-constants
-fno-stack-check -fconserve-stack -Werror=implicit-int
-Werror=strict-prototypes -Werror=date-time -Wno-packed-not-aligned   
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(locks)" 
-D"KBUILD_MODNAME=KBUILD_STR(locks)" -c -o fs/locks.o fs/locks.c 
fs/locks.c: In function 'locks_mandatory_area':
fs/locks.c:1289:1: error: unable to generate reloads for:
 1289 | }
      | ^
(insn 33 263 246 3 (set (mem/c:QI (plus:SI (reg/f:SI 11 fp)
                (const_int -161 [0xffffffffffffff5f])) [249 %sfp+-153 S1 A8])
        (xor:QI (mem/c:QI (plus:SI (reg/f:SI 11 fp)
                    (const_int -161 [0xffffffffffffff5f])) [249 %sfp+-153 S1
A8])
            (const_int 1 [0x1]))) "fs/locks.c":1253:11 discrim 1 358 {xorqi3_1}
     (nil))
during RTL pass: reload
fs/locks.c:1289:1: internal compiler error: in curr_insn_transform, at
lra-constraints.cc:4234
0x7efc18a9b249 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7efc18a9b304 __libc_start_main_impl
        ../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.

Thanks in advance
 Waldemar

Reply via email to