public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mjires at suse dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/113790] New: [14 Regression][riscv64] ICE in curr_insn_transform, at lra-constraints.cc:4294 since r14-4944-gf55cdce3f8dd85
Date: Tue, 06 Feb 2024 19:52:25 +0000	[thread overview]
Message-ID: <bug-113790-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 113790
           Summary: [14 Regression][riscv64] ICE in curr_insn_transform,
                    at lra-constraints.cc:4294 since
                    r14-4944-gf55cdce3f8dd85
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mjires at suse dot cz
                CC: vmakarov at redhat dot com
  Target Milestone: ---
            Target: riscv64

Compiling testcase gcc.c-torture/compile/20120727-2.c results in ICE since
r14-4944-gf55cdce3f8dd85.

$ cat 20120727-2.c
/* { dg-options "-mfpmath=387" { target { i?86-*-* x86_64-*-* } } } */

union {
  char *p;
  double d;
} u;

void
f (void)
{
  u.p = "";
  u.d += 1.1;
}


$ riscv64-linux-gnu-gcc 20120727-2.c -mno-explicit-relocs
-fno-omit-frame-pointer -Oz
20120727-2.c: In function ‘f’:
20120727-2.c:13:1: error: unable to generate reloads for:
   13 | }
      | ^
(insn 20 19 21 2 (set (mem/c:DI (plus:DI (reg/f:DI 65 frame)
                (const_int -24 [0xffffffffffffffe8])) [4 %sfp+-8 S8 A64])
        (reg:DI 143 [142])) "20120727-2.c":12:7 208 {*movdi_64bit}
     (expr_list:REG_DEAD (reg:DI 143 [142])
        (nil)))
during RTL pass: reload
20120727-2.c:13:1: internal compiler error: in curr_insn_transform, at
lra-constraints.cc:4234
0x19851c4 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        /home/mjires/git/GCC/master/gcc/rtl-error.cc:108
0x1785645 curr_insn_transform
        /home/mjires/git/GCC/master/gcc/lra-constraints.cc:4234
0x17898ab lra_constraints(bool)
        /home/mjires/git/GCC/master/gcc/lra-constraints.cc:5432
0x17722e0 lra(_IO_FILE*, int)
        /home/mjires/git/GCC/master/gcc/lra.cc:2442
0x171b25b do_reload
        /home/mjires/git/GCC/master/gcc/ira.cc:5973
0x171b73c execute
        /home/mjires/git/GCC/master/gcc/ira.cc:6161
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.


$ riscv64-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=riscv64-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/home/mjires/built/master/libexec/gcc/riscv64-linux-gnu/14.0.1/lto-wrapper
Target: riscv64-linux-gnu
Configured with: /home/mjires/git/GCC/master/configure
--prefix=/home/mjires/built/master --target=riscv64-linux-gnu
--disable-bootstrap --enable-languages=c,c++ --disable-multilib
--disable-libsanitizer --enable-checking : (reconfigured)
/home/mjires/git/GCC/master/configure --prefix=/home/mjires/built/master
--target=riscv64-linux-gnu --disable-bootstrap --disable-multilib
--disable-libsanitizer --enable-checking target_alias=riscv64-linux-gnu
--enable-languages=c,c++,lto --no-create --no-recursion
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240206 (experimental) (GCC)

             reply	other threads:[~2024-02-06 19:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06 19:52 mjires at suse dot cz [this message]
2024-02-07  8:50 ` [Bug target/113790] " rguenth at gcc dot gnu.org
2024-03-04  4:07 ` law at gcc dot gnu.org
2024-03-04  4:08 ` law at gcc dot gnu.org
2024-03-08 15:30 ` vmakarov at gcc dot gnu.org
2024-03-08 19:53 ` cvs-commit at gcc dot gnu.org
2024-03-09  7:33 ` law at gcc dot gnu.org
2024-04-16 14:47 ` schwab@linux-m68k.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-113790-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: link
Be 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).