aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-04-09 14:12:36 +0200
committerJan Hubicka <jh@suse.cz>2020-04-09 14:12:36 +0200
commitf60979edbfcf6ce2cbf2cb09b8af8c125ff7774f (patch)
tree537e5bafaa25ebc7f33a046e88255650cae20817 /gcc
parent7ed2d6cbd094871a0dd23f2d433b962d5f462936 (diff)
downloadgcc-f60979edbfcf6ce2cbf2cb09b8af8c125ff7774f.zip
gcc-f60979edbfcf6ce2cbf2cb09b8af8c125ff7774f.tar.gz
gcc-f60979edbfcf6ce2cbf2cb09b8af8c125ff7774f.tar.bz2
Avoid g++.dg/lto/alias-4_0.C test failure on ARM [PR91322]
PR tree-optimization/91322 * g++.dg/lto/alias-4_0.C: Avoid conflict with va_list on ARM and add a template testing that.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/lto/alias-4_0.C8
2 files changed, 13 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 991241e..fac41ca 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2020-04-09 Jan Hubicka <hubicka@ucw.cz>
+
+ PR tree-optimization/91322
+ * g++.dg/lto/alias-4_0.C: Avoid conflict with va_list on ARM and add
+ a template testing that
+
2020-04-09 Richard Sandiford <richard.sandiford@arm.com>
* lib/scanasm.exp (check-function-bodies): Treat the third
diff --git a/gcc/testsuite/g++.dg/lto/alias-4_0.C b/gcc/testsuite/g++.dg/lto/alias-4_0.C
index 410c314..3d38632 100644
--- a/gcc/testsuite/g++.dg/lto/alias-4_0.C
+++ b/gcc/testsuite/g++.dg/lto/alias-4_0.C
@@ -1,11 +1,14 @@
/* { dg-lto-do run } */
-/* { dg-lto-options { { -O3 -flto -fno-early-inlining } } } */
+/* { dg-lto-options { { -O3 -flto -fno-early-inlining -fdump-ipa-cgraph} } } */
__attribute__ ((used))
short *ptr_init, **ptr=&ptr_init;
__attribute__ ((used))
struct a {
int *aptr;
+ /* On ARM va_list is an anonymous structure containing pointer.
+ This disable ODR TBAA on it. */
+ short b;
} a, *aptr=&a;
void
@@ -29,3 +32,6 @@ main()
test ();
return 0;
}
+/* On ARM the testcase used to fial because struct a got in conflict with builtin
+ va_list type. Check that this does not happen. */
+/* { dg-final { scan-wpa-ipa-dump-not "ODR and non-ODR type conflict" "cgraph" } } */