From patchwork Sat Feb 1 10:41:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 315898 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 C3C092C00A1 for ; Sat, 1 Feb 2014 21:41:58 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=nyU0BjcCuIu05ee4RBa2Iab16sM9/iIwvx/0tRjPnkZdXjKZeYJ9O zfMC6/PcilXcKk4hPTrLctznQ640T70qWeyNxq6v82UokfpNiGvoYV8t1Ul8JdQb LP1f2IWAodxl0mB4RU46U4KkY616lNYb+UDR5RoQgta/N0FCswGYp8= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=92Rm5eTZlH+QCQcmu6XwbCL/Zic=; b=l92aS+IvU0HGPK0wxWKo byIa4PnY9VdKD12oN+jbCCECWoogNo39cC2E7B77nuMK7c9RczdtUso8agJDjY9u FGCCmJ7HESQ5g24SWVBoVMzc3SUncY4qvcoeGysIsQHcFE7NUcvp0vxR9ftd8LNy Tr8Jzy7RmS5PJD86Ydv5uto= Received: (qmail 16275 invoked by alias); 1 Feb 2014 10:41:52 -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 16265 invoked by uid 89); 1 Feb 2014 10:41:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f48.google.com Received: from mail-wg0-f48.google.com (HELO mail-wg0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 01 Feb 2014 10:41:49 +0000 Received: by mail-wg0-f48.google.com with SMTP id x13so9995931wgg.15 for ; Sat, 01 Feb 2014 02:41:46 -0800 (PST) X-Received: by 10.180.73.141 with SMTP id l13mr2138284wiv.60.1391251306294; Sat, 01 Feb 2014 02:41:46 -0800 (PST) Received: from localhost ([2.28.234.162]) by mx.google.com with ESMTPSA id fo6sm5635436wib.7.2014.02.01.02.41.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 01 Feb 2014 02:41:45 -0800 (PST) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [testsuite, committed] Fix pr49718.C for MIPS PIC Date: Sat, 01 Feb 2014 10:41:45 +0000 Message-ID: <87ppn79kt2.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Similar to Alpha, g++.dg/pr49718.C would fail for MIPS PIC because each called function is mentioned twice, once in the GOT reference and once in the R_MIPS_JALR reloc used for relaxing jumps to branches. Tested on mips64-linux-gnu and applied. Thanks, Richard gcc/testsuite/ * g++.dg/pr49718.C: Use -mno-relax-pic-calls for MIPS. Index: gcc/testsuite/g++.dg/pr49718.C =================================================================== --- gcc/testsuite/g++.dg/pr49718.C 2014-01-20 21:21:09.695678105 +0000 +++ gcc/testsuite/g++.dg/pr49718.C 2014-02-01 10:37:28.604846208 +0000 @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -finstrument-functions" } */ /* { dg-additional-options "-mno-explicit-relocs" { target alpha*-*-* } } */ +/* { dg-additional-options "-mno-relax-pic-calls" { target mips*-*-* } } */ /* { dg-final { scan-assembler-times "__cyg_profile_func_enter" 1} } */ #define NOINSTR __attribute__((no_instrument_function))