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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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 ` marxin at gcc dot gnu.org
  2022-09-30 10:01 ` stefansf at linux dot ibm.com
                   ` (6 subsequent siblings)
  7 siblings, 0 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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-09-30
             Status|UNCONFIRMED                 |NEW

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: stefansf at linux dot ibm.com @ 2022-09-30 10:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Stefan Schulze Frielinghaus <stefansf at linux dot ibm.com> ---
Looks like related to PR107088

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-30 11:55 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (2 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-03  9:23 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 107112 has been marked as a duplicate of this bug. ***

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-04  9:28 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |burnus at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
*** Bug 107149 has been marked as a duplicate of this bug. ***

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (4 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-10-04 10:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Cross ref: The PR mentioned in comment 1 contains a patch suggestion
that fixes the issue of this PR:

  PR 107088 comment 6 (the patch)
  PR 107088 comment 9 (comment that it fixes the issue)

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (5 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: burnus at gcc dot gnu.org @ 2022-10-06 21:42 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> ---
I believe this is now fixed via
commit r13-3105-g5fc4d3e1837ea4850aac6460f563913f1d3fc5b8 for PR 107088

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

* [Bug rtl-optimization/107094] [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108
  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
                   ` (6 preceding siblings ...)
  2022-10-06 21:42 ` burnus at gcc dot gnu.org
@ 2022-10-07  8:56 ` marxin at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-07  8:56 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
Yes, I can confirm that.

^ 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).