aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2020-11-15 17:41:52 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2020-11-15 17:41:52 +0000
commit9ba5e926907fd1e2e0fb35e00a571a4e64a1e912 (patch)
tree86430d3af04e32e655821fb993729866880a504a
parent075fdf85245a4d610479598bff9dadd304c3c1a0 (diff)
downloadgcc-9ba5e926907fd1e2e0fb35e00a571a4e64a1e912.zip
gcc-9ba5e926907fd1e2e0fb35e00a571a4e64a1e912.tar.gz
gcc-9ba5e926907fd1e2e0fb35e00a571a4e64a1e912.tar.bz2
VAX/testsuite: Fix compilation options for `bswapdi-1.c'
Correct a regression in `vax-netbsdelf' gcc testing: .../gcc/testsuite/gcc.target/vax/bswapdi-1.c: In function '__bswapdi2': .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:5:19: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:6:14: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:7:14: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:8:14: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:9:14: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:10:14: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:11:14: error: use of C99 long long integer constant [-Wlong-long] .../gcc/testsuite/gcc.target/vax/bswapdi-1.c:12:14: error: use of C99 long long integer constant [-Wlong-long] compiler exited with status 1 FAIL: gcc.target/vax/bswapdi-1.c (test for excess errors) which is due to the defaults from `vax.exp': # If a testcase doesn't have special options, use these. global DEFAULT_CFLAGS if ![info exists DEFAULT_CFLAGS] then { set DEFAULT_CFLAGS " -ansi -pedantic-errors" } Use an empty override then as the options used do not matter for the objective of this test case. gcc/testsuite/ * gcc.target/vax/bswapdi-1.c (dg-options): New setting.
-rw-r--r--gcc/testsuite/gcc.target/vax/bswapdi-1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/vax/bswapdi-1.c b/gcc/testsuite/gcc.target/vax/bswapdi-1.c
index c658d91..1baa018 100644
--- a/gcc/testsuite/gcc.target/vax/bswapdi-1.c
+++ b/gcc/testsuite/gcc.target/vax/bswapdi-1.c
@@ -1,3 +1,5 @@
+/* { dg-options "" } */
+
typedef int DItype __attribute__ ((mode (DI)));
DItype
__bswapdi2 (DItype u)