diff mbox

[testsuite,i386] Require alias support in gcc.target/i386/chkp-hidden-def.c

Message ID yddd1rno7wq.fsf@lokon.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth Feb. 23, 2016, 1:47 p.m. UTC
gcc.target/i386/chkp-hidden-def.c currently FAILs on Solaris/x86.  When
investigating, I found that on Darwin/x86 the test fails in a different
way:

FAIL: gcc.target/i386/chkp-hidden-def.c (test for excess errors)
UNRESOLVED: gcc.target/i386/chkp-hidden-def.c scan-assembler-not test.chkp

Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/i386/chkp-hidden-def.c:14:24: error: only weak aliases are supported in this configuration

The following patch fixes this.  Tested with the appropriate runtest
invocations on x86_64-apple-darwin11.4.2 and x86_64-pc-linux-gnu,
installed on mainline.  Could be installed on the gcc-5 branch, too,
where the same problem exists, but I don't test that branch on Darwin.

	Rainer


2016-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.target/i386/chkp-hidden-def.c: Require alias support.
diff mbox

Patch

# HG changeset patch
# Parent  6d2d660feb49617a55dabb3e1e010638e3500355
Require alias support in gcc.target/i386/chkp-hidden-def.c

diff --git a/gcc/testsuite/gcc.target/i386/chkp-hidden-def.c b/gcc/testsuite/gcc.target/i386/chkp-hidden-def.c
--- a/gcc/testsuite/gcc.target/i386/chkp-hidden-def.c
+++ b/gcc/testsuite/gcc.target/i386/chkp-hidden-def.c
@@ -1,4 +1,5 @@ 
 /* { dg-do compile { target { ! x32 } } } */
+/* { dg-require-alias "" } */
 /* { dg-options "-fcheck-pointer-bounds -mmpx -O2" } */
 /* { dg-final { scan-assembler-not "test.chkp" } } */