public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3850] Add guality testcase for RTL alias analysis fix
@ 2022-11-09 11:31 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2022-11-09 11:31 UTC (permalink / raw)
  To: gcc-cvs

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;
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-09 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 11:31 [gcc r13-3850] Add guality testcase for RTL alias analysis fix Eric Botcazou

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