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

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Fri Oct 7 12:09:00 GMT 2011


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: testsuite-vector-compare-2.patch
Type: text/x-patch
Size: 449 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111007/077d710a/attachment.bin>
-------------- next part --------------

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Gcc-patches mailing list