diff mbox

[testsuite] Disable ABI warnings for gcc.c-torture/execute/vector-compare-2.c (PR tree-optimization/50575)

Message ID yddwrchauhq.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Oct. 7, 2011, 11:53 a.m. UTC
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.

Comments

Mike Stump Oct. 7, 2011, 4:51 p.m. UTC | #1
On Oct 7, 2011, at 4:53 AM, Rainer Orth wrote:
> gcc.c-torture/execute/vector-compare-2.c was FAILing on Solaris 8 and
> 9/x86 with ABI warnings

> Closer investigation revealed a mess:

So, the compile testsuite does:

  gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] "-w"

in compile.exp.  So, to be similar, would a better fix be to add a -w to the execute.exp script someplace.  Not a huge fan of -w, but...  I like predictability and similarity.
diff mbox

Patch

# 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