From patchwork Thu Oct 24 15:28:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Krebbel X-Patchwork-Id: 1183184 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-511687-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="vMwSBL86"; dkim-atps=neutral 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 46zWPT5kJGz9sPh for ; Fri, 25 Oct 2019 02:29:16 +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:from :to:subject:date:mime-version:content-transfer-encoding :message-id; q=dns; s=default; b=BtCM8T2ZXZHnMJK41swhKxp/qd/Lj9h U8mkoO8Xmny3oxuTtf4iIcH8OPdEGNsA2vTqxIPCRxTZriyQPk5ZGdxohF+CGKdt kBqOxdv+49zu6YHq7qglOGS3hSFJS1R5ozAdHjyB8K4j62175V+b0pHSx3NqNdQm PcQNvdIxIplk= 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:mime-version:content-transfer-encoding :message-id; s=default; bh=MqIvz+6pvAr3m94mjzseShuzIzk=; b=vMwSB L86qil8BD1BhtXf7kCpBW1wp5oTbHKP1uXO6KD8baZVot467lKIvnmvN19yaFOnn /DZRFMef8m0YiiPCZvIW2BgKQUF00FJ1ips4nHfd+iuApIBe3TyC86iYsA2kPSmB vfwdakOZ0oq3+v2rChbNduXWsNU1LnPOQYs4sI= Received: (qmail 47601 invoked by alias); 24 Oct 2019 15:29:08 -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 47591 invoked by uid 89); 24 Oct 2019 15:29:08 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy= 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 ESMTP; Thu, 24 Oct 2019 15:29:07 +0000 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9OFSlC5036383 for ; Thu, 24 Oct 2019 11:29:05 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vuc50f0e0-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 24 Oct 2019 11:29:04 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 24 Oct 2019 16:29:01 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 24 Oct 2019 16:28:59 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9OFSxkG45023266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 24 Oct 2019 15:28:59 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E35EB4C058 for ; Thu, 24 Oct 2019 15:28:58 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BCBAF4C052 for ; Thu, 24 Oct 2019 15:28:58 +0000 (GMT) Received: from nelson.boeblingen.de.ibm.com (unknown [9.152.222.42]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP for ; Thu, 24 Oct 2019 15:28:58 +0000 (GMT) From: Andreas Krebbel To: gcc-patches@gcc.gnu.org Subject: [Committed] ipa-sra-19.c: Avoid unprototyped function Date: Thu, 24 Oct 2019 17:28:58 +0200 MIME-Version: 1.0 x-cbid: 19102415-4275-0000-0000-00000376F74E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19102415-4276-0000-0000-0000388A2253 Message-Id: <20191024152858.3726-1-krebbel@linux.ibm.com> X-IsSubscribed: yes Power and IBM Z require a function prototype if a vector argument is passed. Complete the prototype of k to prevent errors from being triggered on these platforms Committed after the discussion here: https://gcc.gnu.org/ml/gcc-patches/2019-10/msg01737.html gcc/testsuite/ChangeLog: 2019-10-24 Andreas Krebbel * gcc.dg/ipa/ipa-sra-19.c: Remove dg-skip-if. Add argument type to prototype of k. --- gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c index d219411d8ba..6186d891a29 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c @@ -1,11 +1,10 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ -/* { dg-skip-if "" { powerpc*-*-* } } */ typedef int __attribute__((__vector_size__(16))) vectype; vectype dk(); -vectype k(); +vectype k(vectype); int b; vectype *j;