From patchwork Fri Jan 28 15:08:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 80853 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 5D470B70EA for ; Sat, 29 Jan 2011 02:08:26 +1100 (EST) Received: (qmail 19533 invoked by alias); 28 Jan 2011 15:08:23 -0000 Received: (qmail 19516 invoked by uid 22791); 28 Jan 2011 15:08:23 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Jan 2011 15:08:19 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id CD9B92C5; Fri, 28 Jan 2011 16:08:16 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6wvhfpwV20Uq; Fri, 28 Jan 2011 16:08:15 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id 37C362C4; Fri, 28 Jan 2011 16:08:15 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.4+Sun/8.14.4/Submit) id p0SF8EXE012072; Fri, 28 Jan 2011 16:08:14 +0100 (MET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Jan Hubicka Subject: [testsuite] Require visibility support in gcc.dg/pr47276.c Date: Fri, 28 Jan 2011 16:08:14 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * 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)