aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-07-21 22:23:40 +0200
committerThomas Schwinge <tschwinge@baylibre.com>2024-09-04 12:23:20 +0200
commitb9be3113a9365e8380397abb23abc71f049cf4f1 (patch)
tree529a9b5141b09465ca7383e8fe6f8c446b3997b3 /gcc
parenta89321c890b96c583671b73fc802e87545e4a2b1 (diff)
downloadgcc-b9be3113a9365e8380397abb23abc71f049cf4f1.zip
gcc-b9be3113a9365e8380397abb23abc71f049cf4f1.tar.gz
gcc-b9be3113a9365e8380397abb23abc71f049cf4f1.tar.bz2
nvptx: Specify '-mno-alias' for 'gcc.dg/pr60797.c' [PR60797, PR104957]
2014 Subversion r209299 (Git commit 8330537b5b58bd0532a0a49f9cbd59bf526a7847) "Fix PR60797" added this test case, which we now amend so that it's able to test its thing also in '--target=nvptx-none' configurations with symbol alias support enabled (..., and test nvptx '-mno-alias'). PR middle-end/60797 PR target/104957 gcc/testsuite/ * gcc.dg/pr60797.c: For nvptx, specify '-mno-alias'.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pr60797.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pr60797.c b/gcc/testsuite/gcc.dg/pr60797.c
index 45090ba..0485b2d 100644
--- a/gcc/testsuite/gcc.dg/pr60797.c
+++ b/gcc/testsuite/gcc.dg/pr60797.c
@@ -1,5 +1,7 @@
-/* { dg-do compile } */
-/* { dg-skip-if "" { alias } } */
+/* If there's support for symbol aliases, have to 'dg-skip-if' -- unless
+ there's a way to disable this support.
+ { dg-additional-options -mno-alias { target nvptx-*-* } }
+ { dg-skip-if "" { { ! nvptx-*-* } && alias } } */
extern int foo __attribute__((alias("bar"))); /* { dg-error "supported" } */
int main()