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/97992] New: ICE in subst_asm_stack_regs, at reg-stack.c:2264
Date: Wed, 25 Nov 2020 17:04:46 +0000	[thread overview]
Message-ID: <bug-97992-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 97992
           Summary: ICE in subst_asm_stack_regs, at reg-stack.c:2264
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to at least r5 :


$ cat z1.c
long double
f (long double x)
{
  double r;
  asm volatile ("fsqrt" : "=t"(r) : ""(x));
  return f (x * x);
}


$ gcc-11-20201122 -c z1.c -O2
during RTL pass: stack
z1.c: In function 'f':
z1.c:7:1: internal compiler error: in subst_asm_stack_regs, at reg-stack.c:2264
    7 | }
      | ^
0xabde0e subst_asm_stack_regs
        ../../gcc/reg-stack.c:2264
0xabf8ad subst_stack_regs
        ../../gcc/reg-stack.c:2425
0xabfc27 convert_regs_1
        ../../gcc/reg-stack.c:3080
0xabfc27 convert_regs_2
        ../../gcc/reg-stack.c:3214
0xac0ddd convert_regs
        ../../gcc/reg-stack.c:3249
0xac0ddd reg_to_stack
        ../../gcc/reg-stack.c:3374
0xac0ddd rest_of_handle_stack_regs
        ../../gcc/reg-stack.c:3429
0xac0ddd execute
        ../../gcc/reg-stack.c:3460

             reply	other threads:[~2020-11-25 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-25 17:04 gscfq@t-online.de [this message]
2020-11-25 17:12 ` [Bug c/97992] " ubizjak at gmail dot com
2020-12-01 17:50 ` gscfq@t-online.de
2020-12-01 20:25 ` [Bug target/97992] " pinskia at gcc dot gnu.org
2021-12-29  0:58 ` pinskia 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-97992-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).