public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/107094] New: [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
@ 2022-09-30  9:46 marxin at gcc dot gnu.org
  2022-09-30  9:46 ` [Bug rtl-optimization/107094] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-30  9:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107094
           Summary: [13 Regression] ICE in require, at machmode.h:297
                    since r13-2916-gd0b00b63a39108
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: stefansf at linux dot ibm.com
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: amdgcn-amdhsa

The following cross compiler crashes:

$ cat amd.i
int _vfwprintf_r_ch;

int btowc();
int __sprint_r();
int iov_len();

void
_vfwprintf_r() {
  int uio_0, buf;
  for (;;) {
    switch (_vfwprintf_r_ch) {
    case L'c':
      int wc = btowc();
      if (wc)
        goto error;
      if (buf)
        if (++uio_0)
          __sprint_r();
    }
    iov_len();
  }
error:
}

$ ./xgcc -B. amd.i -c -O2 
during RTL pass: postreload
amd.i: In function ‘_vfwprintf_r’:
amd.i:23:1: internal compiler error: in require, at machmode.h:297
   23 | }
      | ^
0xc47789 opt_mode<scalar_int_mode>::require() const
        /home/marxin/Programming/gcc/gcc/machmode.h:297
0xcff5c8 void mode_iterator::get_known_wider<scalar_int_mode>(scalar_int_mode*)
        /home/marxin/Programming/gcc/gcc/machmode.h:1124
0xcf9d81 new_cselib_val
        /home/marxin/Programming/gcc/gcc/cselib.cc:1579
0xcfba7a cselib_lookup_1
        /home/marxin/Programming/gcc/gcc/cselib.cc:2315
0xcfc183 cselib_lookup(rtx_def*, machine_mode, int, machine_mode)
        /home/marxin/Programming/gcc/gcc/cselib.cc:2431
0xcfd498 cselib_record_sets
        /home/marxin/Programming/gcc/gcc/cselib.cc:2932
0xcfe00a cselib_process_insn(rtx_insn*)
        /home/marxin/Programming/gcc/gcc/cselib.cc:3159
0x123eac4 reload_cse_regs_1
        /home/marxin/Programming/gcc/gcc/postreload.cc:229
0x123e5b4 reload_cse_regs
        /home/marxin/Programming/gcc/gcc/postreload.cc:72
0x1244156 execute
        /home/marxin/Programming/gcc/gcc/postreload.cc:2347
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2022-10-07  8:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-30  9:46 [Bug rtl-optimization/107094] New: [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108 marxin at gcc dot gnu.org
2022-09-30  9:46 ` [Bug rtl-optimization/107094] " marxin at gcc dot gnu.org
2022-09-30 10:01 ` stefansf at linux dot ibm.com
2022-09-30 11:55 ` rguenth at gcc dot gnu.org
2022-10-03  9:23 ` marxin at gcc dot gnu.org
2022-10-04  9:28 ` marxin at gcc dot gnu.org
2022-10-04 10:26 ` burnus at gcc dot gnu.org
2022-10-06 21:42 ` burnus at gcc dot gnu.org
2022-10-07  8:56 ` marxin 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).