public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113086] New: m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1
@ 2023-12-19 17:51 ats-gccbugs at offog dot org
  2023-12-28 20:31 ` [Bug target/113086] " mikpelinux at gmail dot com
  2023-12-28 20:39 ` pinskia at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ats-gccbugs at offog dot org @ 2023-12-19 17:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113086
           Summary: m68k: ICE at emit-rtl.cc:2287 with
                    -fzero-call-used-regs=all -fPIE compiling openssh
                    9.6p1
           Product: gcc
           Version: 13.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ats-gccbugs at offog dot org
  Target Milestone: ---

Created attachment 56906
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56906&action=edit
Preprocessed source

This may be a duplicate of 110934.

GCC 13.2.0 running on x86_64-pc-linux-gnu, targeting m68k-linux-gnu.

Preprocessed source attached. The code being cross-compiled is misc.c from
openssh 9.6p1, cut down to just the bandwidth_limit function - the same ICE
comes up in other OpenSSH files too.

Removing either -fzero-call-used-regs=used or -fPIE prevents the ICE.

$ /gar/bin/m68k-linux-gnu-gcc -v -save-temps -freport-bug -g -O2
-fno-strict-aliasing -ftrapv -fzero-call-used-regs=used
-ftrivial-auto-var-init=zero -fno-builtin-memset -fstack-protector-strong -fPIE
-I. -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE
-DHAVE_CONFIG_H -o misc-cutdown.o -c misc-cutdown.c
Using built-in specs.
COLLECT_GCC=/gar/bin/m68k-linux-gnu-gcc
Target: m68k-linux-gnu
Configured with: /src/devel/gcc-m68k/work/gcc-13.2.0/configure --prefix=/gar
--sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/com
--target=m68k-linux-gnu --with-sysroot=/cross/linux-m68k --disable-libssp
--disable-libcc1 --disable-multilib --with-system-zlib
--enable-languages=ada,c,c++,fortran,lto,objc,obj-c++
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-freport-bug' '-g' '-O2'
'-fno-strict-aliasing' '-ftrapv' '-fzero-call-used-regs=used'
'-ftrivial-auto-var-init=zero' '-fno-builtin-memset' '-fstack-protector-strong'
'-fPIE' '-I' '.' '-D' '_XOPEN_SOURCE=600' '-D' '_BSD_SOURCE' '-D'
'_DEFAULT_SOURCE' '-D' '_GNU_SOURCE' '-D' 'HAVE_CONFIG_H' '-o' 'misc-cutdown.o'
'-c' '-mcpu=68020'
 /gar/packages/gcc-m68k-13.2.0/bin/../libexec/gcc/m68k-linux-gnu/13.2.0/cc1 -E
-quiet -v -I . -iprefix
/gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/m68k-linux-gnu/13.2.0/ -D
_XOPEN_SOURCE=600 -D _BSD_SOURCE -D _DEFAULT_SOURCE -D _GNU_SOURCE -D
HAVE_CONFIG_H misc-cutdown.c -mcpu=68020 -freport-bug -fno-strict-aliasing
-ftrapv -fzero-call-used-regs=used -ftrivial-auto-var-init=zero
-fno-builtin-memset -fstack-protector-strong -fPIE -g -fworking-directory -O2
-fpch-preprocess -o misc-cutdown.i
ignoring duplicate directory
"/gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/../../lib/gcc/m68k-linux-gnu/13.2.0/include"
ignoring nonexistent directory "/cross/linux-m68k/usr/local/include"
ignoring duplicate directory
"/gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/../../lib/gcc/m68k-linux-gnu/13.2.0/include-fixed"
ignoring duplicate directory
"/gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/../../lib/gcc/m68k-linux-gnu/13.2.0/../../../../m68k-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 .
 /gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/m68k-linux-gnu/13.2.0/include

/gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/m68k-linux-gnu/13.2.0/include-fixed

/gar/packages/gcc-m68k-13.2.0/bin/../lib/gcc/m68k-linux-gnu/13.2.0/../../../../m68k-linux-gnu/include
 /cross/linux-m68k/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-freport-bug' '-g' '-O2'
'-fno-strict-aliasing' '-ftrapv' '-fzero-call-used-regs=used'
'-ftrivial-auto-var-init=zero' '-fno-builtin-memset' '-fstack-protector-strong'
'-fPIE' '-I' '.' '-D' '_XOPEN_SOURCE=600' '-D' '_BSD_SOURCE' '-D'
'_DEFAULT_SOURCE' '-D' '_GNU_SOURCE' '-D' 'HAVE_CONFIG_H' '-o' 'misc-cutdown.o'
'-c' '-mcpu=68020'
 /gar/packages/gcc-m68k-13.2.0/bin/../libexec/gcc/m68k-linux-gnu/13.2.0/cc1
-fpreprocessed misc-cutdown.i -quiet -dumpbase misc-cutdown.c -dumpbase-ext .c
-mcpu=68020 -g -O2 -version -freport-bug -fno-strict-aliasing -ftrapv
-fzero-call-used-regs=used -ftrivial-auto-var-init=zero -fno-builtin-memset
-fstack-protector-strong -fPIE -o misc-cutdown.s
GNU C17 (GCC) version 13.2.0 (m68k-linux-gnu)
        compiled by GNU C version 13.2.0, GMP version 6.3.0, MPFR version
4.2.1, MPC version 1.3.1, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 3fc6ded084c3f48f4ac8f43a1a9564e4
during RTL pass: zero_call_used_regs
misc-cutdown.c: In function ‘bandwidth_limit’:
misc-cutdown.c:108:1: internal compiler error: in change_address_1, at
emit-rtl.cc:2287
  108 | }
      | ^
0x7f684ed71c49 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f684ed71d04 __libc_start_main_impl
        ../csu/libc-start.c:360
0xb34c70 _start
        ../sysdeps/x86_64/start.S:115
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

(-freport-bug is saying "not reproducible" here because the addresses in the
backtrace are different each time; otherwise the output is the same.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/113086] m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1
  2023-12-19 17:51 [Bug target/113086] New: m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1 ats-gccbugs at offog dot org
@ 2023-12-28 20:31 ` mikpelinux at gmail dot com
  2023-12-28 20:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: mikpelinux at gmail dot com @ 2023-12-28 20:31 UTC (permalink / raw)
  To: gcc-bugs

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

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Bisected to the same rev. as PR110934, and fixed by the same proposed patch.
Please mark it as a duplicate of PR110934.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/113086] m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1
  2023-12-19 17:51 [Bug target/113086] New: m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1 ats-gccbugs at offog dot org
  2023-12-28 20:31 ` [Bug target/113086] " mikpelinux at gmail dot com
@ 2023-12-28 20:39 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-28 20:39 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 110934.

*** This bug has been marked as a duplicate of bug 110934 ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-28 20:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-19 17:51 [Bug target/113086] New: m68k: ICE at emit-rtl.cc:2287 with -fzero-call-used-regs=all -fPIE compiling openssh 9.6p1 ats-gccbugs at offog dot org
2023-12-28 20:31 ` [Bug target/113086] " mikpelinux at gmail dot com
2023-12-28 20:39 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).