public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/97129] New: [11 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2405
Date: Mon, 21 Sep 2020 02:24:25 +0000	[thread overview]
Message-ID: <bug-97129-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 97129
           Summary: [11 Regression] ICE in maybe_record_trace_start, at
                    dwarf2cfi.c:2405
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-11.0.0-alpha20200913 snapshot (g:2fd157813c4964033e156ccb7df8889cd2afee99)
ICEs when compiling the following testcase w/ -O2 -fwrapv
-fno-omit-frame-pointer:

void
s5 (void);

void
rp (int, int, int, int, int, int, int);

void
yv (int kh)
{
  if (kh)
    return;

  while (kh >= 0)
    {
      s5 ();
      ++kh;
    }
}

int __attribute__ ((naked))
p7 (int q3)
{
  yv (q3);
  rp (0, 0, 0, 0, 0, 0, 0);

  return 0;
}

% gcc-11.0.0 -O2 -fwrapv -fno-omit-frame-pointer -c glywli2q.c
during RTL pass: dwarf2
glywli2q.c: In function 'p7':
glywli2q.c:27:1: internal compiler error: in maybe_record_trace_start, at
dwarf2cfi.c:2405
   27 | }
      | ^
0x6197f4 maybe_record_trace_start
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200913/work/gcc-11-20200913/gcc/dwarf2cfi.c:2405
0x99ccdd scan_trace
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200913/work/gcc-11-20200913/gcc/dwarf2cfi.c:2605
0x99d4fc create_cfi_notes
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200913/work/gcc-11-20200913/gcc/dwarf2cfi.c:2758
0x99d4fc execute_dwarf2_frame
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200913/work/gcc-11-20200913/gcc/dwarf2cfi.c:3122
0x99d4fc execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200913/work/gcc-11-20200913/gcc/dwarf2cfi.c:3610

Inconsistent CFI state!
SHOULD have:
        .cfi_def_cfa 7, 8
        .cfi_offset 16, -8
DO have:
        .cfi_def_cfa 7, 24
        .cfi_offset 16, -8

             reply	other threads:[~2020-09-21  2:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-21  2:24 asolokha at gmx dot com [this message]
2020-09-21  6:56 ` [Bug rtl-optimization/97129] " rguenth at gcc dot gnu.org
2020-10-12 11:50 ` rguenth at gcc dot gnu.org
2020-10-16 14:24 ` marxin at gcc dot gnu.org
2020-10-16 14:48 ` ubizjak at gmail dot com

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