From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 625D63889E01; Mon, 7 Aug 2023 11:33:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 625D63889E01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691408037; bh=irsYDXncUy9xVdbe31SP8oxxEhA8iU72UdCulodLZ+A=; h=From:To:Subject:Date:From; b=WsathVpd6k7utT2X0aavEaMnAEeHbgdabkPy/gm0pxOQ19r1i+NW/i5ezIps18iSu cBQaDL519k4GTk55z8JyET5+SNzsRXm80kJ4aXBNmXHxgHSEybGeZrLMG6N8vJBsz9 zXFZB3+Jrshiov6yOGTRSvPuMGCDvmnGDglevU/U= From: "wbx at openadk dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110934] New: m68k: ICE with -fzero-call-used-regs=all compiling openssh 9.3p2 Date: Mon, 07 Aug 2023 11:33:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wbx at openadk dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110934 Bug ID: 110934 Summary: m68k: ICE with -fzero-call-used-regs=3Dall compiling openssh 9.3p2 Product: gcc Version: 13.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: --- Hi, following ICE is generated when using Buildroot to compile OpenSSH 9.3p2 for m68k. /home/browa22-ext/openssh/output/host/bin/m68k-buildroot-linux-uclibc-gcc -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -Os -g0= =20 -pipe -Wno-error=3Dformat-truncation -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess -Wno-pointer-si= gn -Wno-unused-result -Wimplicit-fallthrough -Wmisleading-indentation -fno-strict-aliasing -D_FORTIFY_SOURCE=3D2 -ftrapv -fzero-call-used-regs=3D= all -ftrivial-auto-var-init=3Dzero -fno-builtin-memset -fPIC -I. -I.. -I. -I.= /.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_XOPEN_SOURCE=3D600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -DHAVE_CONFIG_H -c bsd-closefrom.c during RTL pass: zero_call_used_regs bsd-closefrom.c: In function =E2=80=98closefrom=E2=80=99: bsd-closefrom.c:151:1: internal compiler error: in change_address_1, at emit-rtl.cc:2287 151 | } | ^ 0x7f5f7d66f189 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7f5f7d66f244 __libc_start_main_impl ../csu/libc-start.c:381 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. Using -fzero-call-used-regs=3Dused fixes the build issue. gcc -v: /home/browa22-ext/openssh/output/host/bin/m68k-buildroot-linux-uclibc-gcc -v Using built-in specs. COLLECT_GCC=3D/home/browa22-ext/openssh/output/host/bin/m68k-buildroot-linu= x-uclibc-gcc.br_real COLLECT_LTO_WRAPPER=3D/home/browa22-ext/openssh/output/host/libexec/gcc/m68= k-buildroot-linux-uclibc/13.2.0/lto-wrapper Target: m68k-buildroot-linux-uclibc Configured with: ./configure --prefix=3D/home/browa22-ext/openssh/output/ho= st --sysconfdir=3D/home/browa22-ext/openssh/output/host/etc --enable-static --target=3Dm68k-buildroot-linux-uclibc --with-sysroot=3D/home/browa22-ext/openssh/output/host/m68k-buildroot-linux= -uclibc/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --enable-plugins --enable-lto --with-gmp=3D/home/browa22-ext/openssh/output/host --with-mpc=3D/home/browa22-ext/openssh/output/host --with-mpfr=3D/home/browa22-ext/openssh/output/host --with-pkgversion=3D'Bu= ildroot 2023.08-rc1-23-g3693462a1f' --with-bugurl=3Dhttp://bugs.buildroot.net/ --without-zstd --disable-libquadmath --disable-libquadmath-support --disable-libsanitizer --enable-tls --enable-threads --without-isl --without-cloog --with-cpu=3D68040 --enable-languages=3Dc --with-build-time-tools=3D/home/browa22-ext/openssh/output/host/m68k-buildr= oot-linux-uclibc/bin --enable-shared --disable-libgomp Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.2.0 (Buildroot 2023.08-rc1-23-g3693462a1f)=20 COMPILER_PATH=3D/home/browa22-ext/openssh/output/host/libexec/gcc/m68k-buil= droot-linux-uclibc/13.2.0/:/home/browa22-ext/openssh/output/host/libexec/gc= c/m68k-buildroot-linux-uclibc/13.2.0/:/home/browa22-ext/openssh/output/host= /libexec/gcc/m68k-buildroot-linux-uclibc/:/home/browa22-ext/openssh/output/= host/lib/gcc/m68k-buildroot-linux-uclibc/13.2.0/:/home/browa22-ext/openssh/= output/host/lib/gcc/m68k-buildroot-linux-uclibc/:/home/browa22-ext/openssh/= output/host/lib/gcc/m68k-buildroot-linux-uclibc/13.2.0/../../../../m68k-bui= ldroot-linux-uclibc/bin/ LIBRARY_PATH=3D/home/browa22-ext/openssh/output/host/lib/gcc/m68k-buildroot= -linux-uclibc/13.2.0/:/home/browa22-ext/openssh/output/host/lib/gcc/m68k-bu= ildroot-linux-uclibc/13.2.0/../../../../m68k-buildroot-linux-uclibc/lib/:/h= ome/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot/lib= /:/home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot= /usr/lib/ COLLECT_GCC_OPTIONS=3D'--sysroot=3D/home/browa22-ext/openssh/output/host/m6= 8k-buildroot-linux-uclibc/sysroot' '-v' '-mcpu=3D68040' '-dumpdir' 'a.' /home/browa22-ext/openssh/output/host/libexec/gcc/m68k-buildroot-linux-ucli= bc/13.2.0/collect2 -plugin /home/browa22-ext/openssh/output/host/libexec/gcc/m68k-buildroot-linux-ucli= bc/13.2.0/liblto_plugin.so -plugin-opt=3D/home/browa22-ext/openssh/output/host/libexec/gcc/m68k-buildr= oot-linux-uclibc/13.2.0/lto-wrapper -plugin-opt=3D-fresolution=3D/tmp/cclgUbWV.res -plugin-opt=3D-pass-through= =3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s -plugin-opt=3D-pass-through=3D-lc -plugin-opt=3D-pass-through=3D-lgcc -plugin-opt=3D-pass-through=3D-lgcc_s --sysroot=3D/home/browa22-ext/openssh/output/host/m68k-buildroot-linux-ucli= bc/sysroot --eh-frame-hdr -m m68kelf -dynamic-linker /lib/ld-uClibc.so.0 /home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot/u= sr/lib/crt1.o /home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot/u= sr/lib/crti.o /home/browa22-ext/openssh/output/host/lib/gcc/m68k-buildroot-linux-uclibc/1= 3.2.0/crtbegin.o -L/home/browa22-ext/openssh/output/host/lib/gcc/m68k-buildroot-linux-uclibc= /13.2.0 -L/home/browa22-ext/openssh/output/host/lib/gcc/m68k-buildroot-linux-uclibc= /13.2.0/../../../../m68k-buildroot-linux-uclibc/lib -L/home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot= /lib -L/home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot= /usr/lib -z relro -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /home/browa22-ext/openssh/output/host/lib/gcc/m68k-buildroot-linux-uclibc/1= 3.2.0/crtend.o /home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot/u= sr/lib/crtn.o /home/browa22-ext/openssh/output/host/lib/gcc/m68k-buildroot-linux-uclibc/1= 3.2.0/../../../../m68k-buildroot-linux-uclibc/bin/ld: /home/browa22-ext/openssh/output/host/m68k-buildroot-linux-uclibc/sysroot/u= sr/lib/crt1.o: in function `_start': (.text+0x1c): undefined reference to `main' collect2: error: ld returned 1 exit status=