This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] Require visibility support in gcc.dg/pr47276.c


The new gcc.dg/pr47276.c test fails on Solaris 9/x86 with Sun as:

FAIL: gcc.dg/pr47276.c (test for excess errors)
Excess errors:
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/pr47276.c:18:1: warning: visibi
lity attribute not supported in this configuration; ignored [-Wattributes]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/pr47276.c:30:1: warning: visibi
lity attribute not supported in this configuration; ignored [-Wattributes]
/vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.dg/pr47276.c:30:1: warning: visibi
lity attribute not supported in this configuration; ignored [-Wattributes]

It fails to declare that it requires visibility support.  Fixed as
follows, tested with the appropriate runtest invocation, installed as
obvious.

	Rainer


2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/pr47276.c: Add dg-require-visibility.

diff -r 4038f5696767 gcc/testsuite/gcc.dg/pr47276.c
--- a/gcc/testsuite/gcc.dg/pr47276.c	Thu Jan 27 18:36:03 2011 +0000
+++ b/gcc/testsuite/gcc.dg/pr47276.c	Fri Jan 28 16:04:35 2011 +0100
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-alias "" } */
+/* { dg-require-visibility "" } */
 extern void syslog (int __pri, __const char *__fmt, ...)
      __attribute__ ((__format__ (__printf__, 2, 3)));
 extern void vsyslog (int __pri, __const char *__fmt, int __ap)

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]