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

            Bug ID: 114358
           Summary: [13 Regression] ICE in change_address_1, at
                    emit-rtl.cc:2287 on m68k-linux-gnu
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org
  Target Milestone: ---

[forwarded from https://bugs.debian.org/1066891]

seen with the gcc-13 branch building openssh, removing either the
-fzero-call-used-regs=used or -fPIE avoids the issue.

I can't reproduce this with the trunk.

$ cat moduli.i
int snprintf_eta;
double snprintf_time_per_line;
int snprintf(char *, int, char *, ...) {
  snprintf_eta = snprintf_time_per_line;
}

$ m68k-linux-gnu-gcc -c -O2 -fno-strict-aliasing -fzero-call-used-regs=used
-fPIE moduli.i 
during RTL pass: zero_call_used_regs
moduli.i: In function ‘snprintf’:
moduli.i:5:1: internal compiler error: in change_address_1, at emit-rtl.cc:2287
    5 | }
      | ^
0x7f8a86a666c9 __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7f8a86a66784 __libc_start_main_impl
        ../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source (by using
-freport-bug).

Reply via email to