public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/104209] New: ICE in lra_split_hard_reg_for, at lra-assigns.cc:1837
Date: Mon, 24 Jan 2022 18:58:03 +0000	[thread overview]
Message-ID: <bug-104209-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 104209
           Summary: ICE in lra_split_hard_reg_for, at lra-assigns.cc:1837
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

With file gcc.dg/torture/pr20314-2.c, 
affects versions down to at least r5 :


$ gcc-12-20220123 -c pr20314-2.c -m32 -fPIC
pr20314-2.c: In function 'f1':
pr20314-2.c:5:3: error: 'asm' operand has impossible constraints
    5 |   __asm__ volatile (""
      |   ^~~~~~~
pr20314-2.c:9:1: error: unable to find a register to spill
    9 | }
      | ^
pr20314-2.c:9:1: error: this is the insn:
(insn 96 94 98 2 (set (reg:SI 151 [123])
        (reg:SI 123)) "pr20314-2.c":5:3 81 {*movsi_internal}
     (expr_list:REG_DEAD (reg:SI 123)
        (nil)))
during RTL pass: reload
pr20314-2.c:9:1: internal compiler error: in lra_split_hard_reg_for, at
lra-assigns.cc:1837
0x685898 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../gcc/rtl-error.cc:108
0xc1f9e1 lra_split_hard_reg_for()
        ../../gcc/lra-assigns.cc:1837
0xc19c5b lra(_IO_FILE*)
        ../../gcc/lra.cc:2420
0xbc7b39 do_reload
        ../../gcc/ira.cc:5940
0xbc7b39 execute
        ../../gcc/ira.cc:6126

             reply	other threads:[~2022-01-24 18:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 18:58 gscfq@t-online.de [this message]
2022-01-24 19:09 ` [Bug rtl-optimization/104209] [9/10/11/12 Regression] gcc.dg/torture/pr20314-2.c ICE with -m32 -fPIC in lra_split_hard_reg_for pinskia at gcc dot gnu.org
2022-01-24 19:10 ` pinskia at gcc dot gnu.org
2022-01-25  7:56 ` rguenth at gcc dot gnu.org
2022-01-25  8:40 ` marxin at gcc dot gnu.org
2022-03-09 13:24 ` rguenth at gcc dot gnu.org
2022-05-27  9:47 ` [Bug rtl-optimization/104209] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:47 ` jakub at gcc dot gnu.org
2023-07-07 10:42 ` [Bug rtl-optimization/104209] [11/12/13/14 " rguenth 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-104209-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).