public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3336] [PR tree-optimization/105820] Add test. Date: Mon, 17 Oct 2022 13:41:14 +0000 (GMT) [thread overview] Message-ID: <20221017134114.9C0F83858D28@sourceware.org> (raw) https://gcc.gnu.org/g:01d7d459e433196b1faa4ee025a314266887fc59 commit r13-3336-g01d7d459e433196b1faa4ee025a314266887fc59 Author: Aldy Hernandez <aldyh@redhat.com> Date: Mon Oct 17 15:32:35 2022 +0200 [PR tree-optimization/105820] Add test. PR tree-optimization/105820 gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/pr105820.c: New test. Diff: --- gcc/testsuite/g++.dg/tree-ssa/pr105820.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr105820.c b/gcc/testsuite/g++.dg/tree-ssa/pr105820.c new file mode 100644 index 00000000000..507950f42d3 --- /dev/null +++ b/gcc/testsuite/g++.dg/tree-ssa/pr105820.c @@ -0,0 +1,26 @@ +// { dg-do compile } +// { dg-options "-O2 -fstrict-enums --param case-values-threshold=1"} + +typedef int basic_block; + +enum gimple_code {}; + +struct omp_region { + omp_region *outer; + basic_block cont; +}; + +void +oof (void); + +void +build_omp_regions_1 (omp_region *parent, basic_block bb, gimple_code code) +{ + if (code == 2) + parent = parent->outer; + else if (code != 0) + parent->cont = bb; + + if (parent) + oof (); +}
reply other threads:[~2022-10-17 13:41 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20221017134114.9C0F83858D28@sourceware.org \ --to=aldyh@gcc.gnu.org \ --cc=gcc-cvs@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: linkBe 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).