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/99322] New: [11 Regression] ICE in change_scope, at final.c:1480
Date: Mon, 01 Mar 2021 17:02:16 +0000	[thread overview]
Message-ID: <bug-99322-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 99322
           Summary: [11 Regression] ICE in change_scope, at final.c:1480
           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: ---

Changed between 20201018 and 20201108 :


$ cat z1.c
void g ();
void f ()
{
  #pragma omp parallel
  for (;;)
    for (int i = 0; i < 8; ++i)
      g ();
  { L1: }
  &&L1;
}


$ gcc-11-20210228 -c z1.c -fopenmp -O2 -g
$ gcc-11-20210228 -c z1.c -fopenmp -O3
$
$ gcc-11-20210228 -c z1.c -fopenmp -O3 -g
during RTL pass: final
z1.c: In function 'f._omp_fn.0':
z1.c:4:11: internal compiler error: Segmentation fault
    4 |   #pragma omp parallel
      |           ^~~
0xb5eeff crash_signal
        ../../gcc/toplev.c:327
0x87295d change_scope
        ../../gcc/final.c:1480
0x8792c1 reemit_insn_block_notes
        ../../gcc/final.c:1581
0x8792c1 final_start_function_1
        ../../gcc/final.c:1785
0x879549 rest_of_handle_final
        ../../gcc/final.c:4675
0x879549 execute
        ../../gcc/final.c:4754

---

z1.c: In function 'f._omp_fn.0':
z1.c:10:1: error: location references block not in block tree
   10 | }
      | ^
L1:
during IPA pass: *free_lang_data
z1.c:10:1: internal compiler error: verify_gimple failed
0xd94884 verify_gimple_in_cfg(function*, bool)
        ../../gcc/tree-cfg.c:5477
0xc45d3e execute_function_todo
        ../../gcc/passes.c:2042
0xc46b7d do_per_function
        ../../gcc/passes.c:1694
0xc46be2 execute_todo
        ../../gcc/passes.c:2096

             reply	other threads:[~2021-03-01 17:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-01 17:02 gscfq@t-online.de [this message]
2021-03-01 19:10 ` [Bug c/99322] " pinskia at gcc dot gnu.org
2021-03-02  9:42 ` marxin at gcc dot gnu.org
2021-03-05 14:52 ` jakub at gcc dot gnu.org
2021-03-05 16:41 ` jakub at gcc dot gnu.org
2021-03-05 16:59 ` [Bug middle-end/99322] " jakub at gcc dot gnu.org
2021-03-05 20:59 ` cvs-commit at gcc dot gnu.org
2021-03-05 21:01 ` jakub 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-99322-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).