public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] VAX/testsuite: Fix compilation options for `bswapdi-1.c'
@ 2020-11-15 17:44 Maciej W. Rozycki
  0 siblings, 0 replies; only message in thread
From: Maciej W. Rozycki @ 2020-11-15 17:44 UTC (permalink / raw)
  To: gcc-patches

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.
---
Hi,

 Obviously nobody has run regression testing for a VAX target for a long 
while now.  Committed as obvious.

  Maciej
---
 gcc/testsuite/gcc.target/vax/bswapdi-1.c |    2 ++
 1 file changed, 2 insertions(+)

gcc-vax-bswapdi-test-fix.diff
Index: gcc/gcc/testsuite/gcc.target/vax/bswapdi-1.c
===================================================================
--- gcc.orig/gcc/testsuite/gcc.target/vax/bswapdi-1.c
+++ gcc/gcc/testsuite/gcc.target/vax/bswapdi-1.c
@@ -1,3 +1,5 @@
+/* { dg-options "" } */
+
 typedef int DItype __attribute__ ((mode (DI)));
 DItype
 __bswapdi2 (DItype u)

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

only message in thread, other threads:[~2020-11-15 17:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-15 17:44 [committed] VAX/testsuite: Fix compilation options for `bswapdi-1.c' Maciej W. Rozycki

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