public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Richard Biener <rguenth@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6153] tree-optimization/108868 - new testcase Date: Tue, 21 Feb 2023 09:33:50 +0000 (GMT) [thread overview] Message-ID: <20230221093350.771263858C36@sourceware.org> (raw) https://gcc.gnu.org/g:ecc863e85efe259c799515de0c38c2297b0e3bd7 commit r13-6153-gecc863e85efe259c799515de0c38c2297b0e3bd7 Author: Richard Biener <rguenther@suse.de> Date: Tue Feb 21 10:32:10 2023 +0100 tree-optimization/108868 - new testcase New testcase for the fixed bug. PR tree-optimization/108868 * gcc.dg/pr108868.c: New testcase. Diff: --- gcc/testsuite/gcc.dg/pr108868.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/gcc/testsuite/gcc.dg/pr108868.c b/gcc/testsuite/gcc.dg/pr108868.c new file mode 100644 index 00000000000..b6f1a79dedf --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr108868.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fdump-tree-optimized" } */ + +int x; +int vfork (void) __attribute__((__leaf__, __returns_twice__)); +int fork (void); +void bar (int, int, int *); + +void +foo (void) +{ + int b = 0; + int r = x ? vfork () : fork (); + bar (r, x, &b); +} + +/* { dg-final { scan-tree-dump "ABNORMAL_DISPATCHER" "optimized" } } */
reply other threads:[~2023-02-21 9:33 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=20230221093350.771263858C36@sourceware.org \ --to=rguenth@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).