This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] Disable ABI warnings for gcc.c-torture/execute/vector-compare-2.c (PR tree-optimization/50575)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 07 Oct 2011 13:53:05 +0200
- Subject: [testsuite] Disable ABI warnings for gcc.c-torture/execute/vector-compare-2.c (PR tree-optimization/50575)
gcc.c-torture/execute/vector-compare-2.c was FAILing on Solaris 8 and
9/x86 with ABI warnings
output is:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.c: In function 'foo':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.c:7:1: note: The ABI for passing parameters with 16-byte alignment has changed in GCC 4.6
In file included from :0:0:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.c: In function 'foo':
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.c:7:1: note: The ABI for passing parameters with 16-byte alignment has changed in GCC 4.6
FAIL: gcc.c-torture/execute/vector-compare-2.c compilation, -O2 -flto -flto-partition=none
but strangely only with -flto, although the message also appears
without. Closer investigation revealed a mess:
* If I just run this single test with runtest, it fails for all options,
not just -flto.
* The notes are pruned by gcc-dg-prune, but that isn't normally loaded
by execute.exp. If you do load it explicitly, the notes are pruned as
during a regular testsuite run. I suspect that some other driver is
loaded together with execute.exp which causes this.
* The -flto tests still fail because of a single message that isn't
pruned:
In file included from :0:0:
Only lto.exp (not loaded here) does prune that one.
To avoid that mess, I've simply added a .x file which adds -Wno-psabi.
Tested with the appropriate runtest invocation on i386-pc-solaris2.8 and
i386-pc-solaris2.11, installed on mainline.
Rainer
2011-10-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
PR tree-optimization/50575
* gcc.c-torture/execute/vector-compare-2.x: New file.
# HG changeset patch
# Parent 9a920c885d78e91628abbcba90693e8bb3e6f1a0
Disable ABI warnings for gcc.c-torture/execute/vector-compare-2.c (PR tree-optimization/50575)
diff --git a/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.x b/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.x
new file mode 100644
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.x
@@ -0,0 +1,2 @@
+set additional_flags "-Wno-psabi"
+return 0
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University