From patchwork Mon Jan 12 00:23:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 427535 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A0757140217 for ; Mon, 12 Jan 2015 11:24:02 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=lTWBL6u7EEDUK+ASDQMURHZXHUWmQ+02dMcC9a3PDU53dzrNMRlmu SJlgUQyWhcWwnJSfnyQDlNhSR3+qqqQ2FIpYUX8O/IP5VJfahei3ppr1UGqq0IMn s5BGFqF9Tt4ZT/zlm1e0k+wCq+q8U3uK1zqRmcmzNHmmUDQmgC36MI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=8FOUJGe4xNeb/pxS/PynVrgEMUI=; b=O/IBb5fu1+8v/rJNr7lk gdpZoIZ6nwMNUywVsgHYs4AfSbQpjVtCCHonWBmY8HXHVfsqYX5bMC6pFXuVEE1b +S9nErIlVHz7zR22owsP1fixVVX7+yL7roIuopGy+BnMDD2uOzw9j1EUhWF/UPtB GONlXtsUN0SqlZSgXW06mqc= Received: (qmail 9078 invoked by alias); 12 Jan 2015 00:23:55 -0000 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 Received: (qmail 9063 invoked by uid 89); 12 Jan 2015 00:23:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f179.google.com Received: from mail-yk0-f179.google.com (HELO mail-yk0-f179.google.com) (209.85.160.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 12 Jan 2015 00:23:52 +0000 Received: by mail-yk0-f179.google.com with SMTP id 19so8087191ykq.10 for ; Sun, 11 Jan 2015 16:23:50 -0800 (PST) X-Received: by 10.170.198.17 with SMTP id p17mr23265452yke.129.1421022230445; Sun, 11 Jan 2015 16:23:50 -0800 (PST) Received: from gnu-tools-1.localdomain (76-220-57-190.lightspeed.sntcca.sbcglobal.net. [76.220.57.190]) by mx.google.com with ESMTPSA id o10sm9473880yho.51.2015.01.11.16.23.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Jan 2015 16:23:50 -0800 (PST) Received: by gnu-tools-1.localdomain (Postfix, from userid 1000) id 6E0BE1C42A5; Sun, 11 Jan 2015 16:23:48 -0800 (PST) Date: Sun, 11 Jan 2015 16:23:48 -0800 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [testsuite] PATCH: Ignore additional messages on Linux/x86 with PIE Message-ID: <20150112002348.GA5842@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-IsSubscribed: yes g++.dg/other/anon5.C is expected to fail to link. On Linux/x86 with PIE, there are additional messages linker: [hjl@gnu-tools-1 gcc]$ g++ -fPIE -pie /export/gnu/import/git/sources/gcc/gcc/testsuite/g++.dg/other/anon5.C /tmp/ccwg53fj.o: In function `f()': anon5.C:(.text+0x7): undefined reference to `(anonymous namespace)::c::t' /usr/local/bin/ld: /tmp/ccwg53fj.o: relocation R_X86_64_PC32 against undefined symbol `_ZN12_GLOBAL__N_11c1tE' can not be used when making a shared object; recompile with -fPIC /usr/local/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status [hjl@gnu-tools-1 gcc]$ This patch ignores additional messages on Linux/x86 with PIE. OK for trunk? Thanks. H.J. --- gcc/testsuite/g++.dg/other/anon5.C | 2 ++ 1 file changed, 2 insertions(+) 2015-01-11 H.J. Lu * g++.dg/other/anon5.C: Ignore additional messages on Linux/x86 with PIE. diff --git a/gcc/testsuite/g++.dg/other/anon5.C b/gcc/testsuite/g++.dg/other/anon5.C index 81e9def..4e4cc44 100644 --- a/gcc/testsuite/g++.dg/other/anon5.C +++ b/gcc/testsuite/g++.dg/other/anon5.C @@ -3,6 +3,8 @@ // { dg-options "-g" } // Ignore additional message on powerpc-ibm-aix // { dg-prune-output "obtain more information" } */ +// Ignore additional messages on Linux/x86 with PIE +// { dg-prune-output "Bad value" } */ namespace { struct c