From patchwork Mon Jul 25 20:29:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 652399 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 3rytDC0h0Jz9sRZ for ; Tue, 26 Jul 2016 06:30:16 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=qgIBNiMl; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=sekfg BIktx1V7YR4eycd4n/RZvRpkDoxDS89/pSd3PWjY7TS5R7FylltYNcrFr7T3pWVI bwXcA7U/Crq65qYGUk1HzvJ4iwZWhTqolDJ8/Z+wsS24IGJc3A7hXZZ2eurcr61G VPwlpMWpvZg65JjHXxBanFTvEnsvO9SdyEkR98= 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:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=sx/Wl+rAlS/ NbU5fBMPH5gx2sBw=; b=qgIBNiMlJW5q0rwLKA74R9gYrV1GSB6DZNGXil+gqQi 0qYiWkB/ZkwIh3KxLvemj1vBEeiyyQb72Kny8/6stKL/XOGVHHsS2Fsi6OhlbiW+ uY5hTy11eHwkzl+81IxfLpDBVqDbBu77E33BCcsvbtw0NcL9P7Se96DTEvGNonLw = Received: (qmail 67458 invoked by alias); 25 Jul 2016 20:30:07 -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 67440 invoked by uid 89); 25 Jul 2016 20:30:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=U*wschmidt, H*m:linux, sk:wschmid, wschmidt@linux.vnet.ibm.com X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 25 Jul 2016 20:30:05 +0000 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6PKTScv117501 for ; Mon, 25 Jul 2016 16:30:03 -0400 Received: from e36.co.us.ibm.com (e36.co.us.ibm.com [32.97.110.154]) by mx0a-001b2d01.pphosted.com with ESMTP id 24dsrmg6aq-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 25 Jul 2016 16:30:03 -0400 Received: from localhost by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 25 Jul 2016 14:30:02 -0600 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 25 Jul 2016 14:29:59 -0600 X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: wschmidt@linux.vnet.ibm.com Received: from b01cxnp23033.gho.pok.ibm.com (b01cxnp23033.gho.pok.ibm.com [9.57.198.28]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 7ACBB3E40044; Mon, 25 Jul 2016 14:29:57 -0600 (MDT) Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6PKTxe340042538; Mon, 25 Jul 2016 20:29:59 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 02C75AE05C; Mon, 25 Jul 2016 16:29:57 -0400 (EDT) Received: from BigMac.local (unknown [9.80.229.77]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP id C91D6AE054; Mon, 25 Jul 2016 16:29:56 -0400 (EDT) To: GCC Patches Cc: Segher Boessenkool , David Edelsohn From: Bill Schmidt Subject: [PATCH, rs6000] Correct effective target in gcc.target/powerpc/pr63354.c Date: Mon, 25 Jul 2016 15:29:55 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16072520-0020-0000-0000-000009681040 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16072520-0021-0000-0000-000054029C04 Message-Id: <60fab437-bce8-0d48-e3ea-7eaaa555fec4@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-07-25_16:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1607250235 X-IsSubscribed: yes Hi, The subject test case uses the -mprofile-kernel option, which is not permitted in 32-bit mode. It currently restricts the effective target to powerpc64, which is not sufficient when using -m32 on 64-bit hardware. This patch changes the effective target restriction to lp64 to correct this. Tested on powerpc64-unknown-linux-gnu, verified. Ok for trunk? Thanks, Bill 2016-07-25 Bill Schmidt * gcc.target/powerpc/pr63354.c: Require lp64 since -mprofile-kernel is not legal with -m32. Index: gcc/testsuite/gcc.target/powerpc/pr63354.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/pr63354.c (revision 236120) +++ gcc/testsuite/gcc.target/powerpc/pr63354.c (working copy) @@ -3,7 +3,7 @@ /* { dg-do compile { target { powerpc*-*-linux* } } } */ /* { dg-options "-O2 -pg -mprofile-kernel" } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-final { scan-assembler-not "mtlr" } } */ int foo(void)