public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/107094] New: [13 Regression] ICE in require, at machmode.h:297 since r13-2916-gd0b00b63a39108 Date: Fri, 30 Sep 2022 09:46:26 +0000 [thread overview] Message-ID: <bug-107094-4@http.gcc.gnu.org/bugzilla/> (raw) 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.
next reply other threads:[~2022-09-30 9:46 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-30 9:46 marxin at gcc dot gnu.org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107094-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).