]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nvptx: Specify '-mno-alias' for 'gcc.dg/pr60797.c' [PR60797, PR104957]
authorThomas Schwinge <tschwinge@baylibre.com>
Sun, 21 Jul 2024 20:23:40 +0000 (22:23 +0200)
committerThomas Schwinge <tschwinge@baylibre.com>
Wed, 4 Sep 2024 10:23:20 +0000 (12:23 +0200)
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'.

gcc/testsuite/gcc.dg/pr60797.c

index 45090bae502c70adbdc96bfe3b239861d3e51534..0485b2de172fe47e8f18d6757b3df55ef987c5f3 100644 (file)
@@ -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()