public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Eric Botcazou <ebotcazou@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3850] Add guality testcase for RTL alias analysis fix Date: Wed, 9 Nov 2022 11:31:13 +0000 (GMT) [thread overview] Message-ID: <20221109113113.285093858D35@sourceware.org> (raw) https://gcc.gnu.org/g:50ebb5e6118c0f631dbfde1b5bf03e533f2c79d4 commit r13-3850-g50ebb5e6118c0f631dbfde1b5bf03e533f2c79d4 Author: Eric Botcazou <ebotcazou@adacore.com> Date: Wed Nov 9 12:27:34 2022 +0100 Add guality testcase for RTL alias analysis fix gcc/testsuite/ * gcc.dg/guality/param-6.c: New test. Diff: --- gcc/testsuite/gcc.dg/guality/param-6.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gcc/testsuite/gcc.dg/guality/param-6.c b/gcc/testsuite/gcc.dg/guality/param-6.c new file mode 100644 index 00000000000..9c4ba5cb46a --- /dev/null +++ b/gcc/testsuite/gcc.dg/guality/param-6.c @@ -0,0 +1,20 @@ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-g" } */ + +void __attribute__((noipa)) bar (void *p) +{} + +void __attribute__((noipa)) foo (int i) +{ + void *p = __builtin_alloca (i); + + asm volatile ("" : : : "ebx"); + + bar (p); /* { dg-final { gdb-test . "i" "5" } } */ +} + +int main (void) +{ + foo (5); + return 0; +}
reply other threads:[~2022-11-09 11:31 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=20221109113113.285093858D35@sourceware.org \ --to=ebotcazou@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).