Message ID | yddr4h7xaef.fsf@lokon.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
On 05/16/13 15:32, Rainer Orth wrote: > The new gcc.dg/visibility-21.c testcase fails on i386-pc-solaris2.11 and > x86_64-unknown-linux-gnu: > > FAIL: gcc.dg/visibility-21.c (test for excess errors) > Excess errors: > /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/visibility-21.c:1:0: warning: this target does not support '-fsection-anchors' [-fsection-anchors] > > Fixed as follows, tested with the appropriate runtest invokation on both > targets where the test becomes UNSUPPORTED, installed on mainline. thanks!
# HG changeset patch # Parent e3635f5f20529d75a74064c8282ce002932dde78 Require section_anchors in gcc.dg/visibility-21.c diff --git a/gcc/testsuite/gcc.dg/visibility-21.c b/gcc/testsuite/gcc.dg/visibility-21.c --- a/gcc/testsuite/gcc.dg/visibility-21.c +++ b/gcc/testsuite/gcc.dg/visibility-21.c @@ -3,6 +3,7 @@ /* { dg-options "-O2 -fsection-anchors" } */ /* { dg-require-visibility "" } */ /* { dg-require-weak "" } */ +/* { dg-require-effective-target section_anchors } */ /* { dg-final { scan-assembler-not "ANCHOR" } } */ int __attribute__((weak, visibility("hidden"))) weak_hidden[3];