From patchwork Thu Jan 30 17:52:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 315417 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 D76352C014B for ; Fri, 31 Jan 2014 04:52:25 +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:date :from:to:cc:subject:message-id:reply-to:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=J9p VOtUWKvU0GbNZm24twWAq5NnTSvsWPZgKB8wL+JQQU7fq1d0zUWyWR47FhgXpuPG xotErk97BbdH+x8YXxMDA0NXDdnHq9EHcpilZ1YCS3TS0/4q00vWv+QW7G5LyVzo jntgE9qGTdaOCcA+TWvM7wcuflwuZqBt/DmESKns= 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:cc:subject:message-id:reply-to:mime-version :content-type:content-transfer-encoding; s=default; bh=v4shkLONp UiwdX9wDFo4t9JQw6g=; b=Qg0xBWqtlxEiS0vqVE6mjPCjfk7dDu9fSIgWd5Ut6 WOgs97bYkdeW/FxefeN3FzhRsA0NrTJimpC9jBDjPiaZaKDCwn8Fn752Hdq8WS0Z ZLu8EkgwMJSMOq93r9cNYj7V8sK34fseXtKzF8LbTZbP7X3ukthC6p9gq/ddbRQZ rI= Received: (qmail 15927 invoked by alias); 30 Jan 2014 17:52:19 -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 15916 invoked by uid 89); 30 Jan 2014 17:52:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Jan 2014 17:52:16 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0UHqDTf000752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 30 Jan 2014 12:52:14 -0500 Received: from tucnak.zalov.cz (vpn1-6-29.ams2.redhat.com [10.36.6.29]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0UHqBbi017244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 30 Jan 2014 12:52:12 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.14.7/8.14.7) with ESMTP id s0UHqAfG032407; Thu, 30 Jan 2014 18:52:11 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.14.7/8.14.7/Submit) id s0UHqAtD032406; Thu, 30 Jan 2014 18:52:10 +0100 Date: Thu, 30 Jan 2014 18:52:10 +0100 From: Jakub Jelinek To: Uros Bizjak , Kirill Yukhin Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] Two small i?86 *intrin* warning fixes Message-ID: <20140130175210.GD892@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi! While looking at some other PR, I've stripped line notes and got pr59947.ii.bak:26330:74: error: ISO C++ forbids declaration of ‘_mm512_mask_cvtusepi64_storeu_epi32’ with no type [-fpermissive] _mm512_mask_cvtusepi64_storeu_epi32 (void* __P, __mmask8 __M, __m512i __A) ^ pr59947.ii.bak: In function ‘float _cvtsh_ss(short unsigned int)’: pr59947.ii.bak:30674:65: warning: narrowing conversion of ‘__S’ from ‘short unsigned int’ to ‘short int’ inside { } [-Wnarrowing] __v8hi __H = __extension__ (__v8hi){ __S, 0, 0, 0, 0, 0, 0, 0 }; ^ warnings that would normally only show up with -Wsystem-headers. Especially the second one looks like one worth fixing. Ok for trunk? 2014-01-30 Jakub Jelinek * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning. * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32): Add missing return type - void. Jakub --- gcc/config/i386/f16cintrin.h.jj 2014-01-03 11:41:06.000000000 +0100 +++ gcc/config/i386/f16cintrin.h 2014-01-30 18:47:28.780037184 +0100 @@ -37,7 +37,7 @@ extern __inline float __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _cvtsh_ss (unsigned short __S) { - __v8hi __H = __extension__ (__v8hi){ __S, 0, 0, 0, 0, 0, 0, 0 }; + __v8hi __H = __extension__ (__v8hi){ (short) __S, 0, 0, 0, 0, 0, 0, 0 }; __v4sf __A = __builtin_ia32_vcvtph2ps (__H); return __builtin_ia32_vec_ext_v4sf (__A, 0); } --- gcc/config/i386/avx512fintrin.h.jj 2014-01-28 14:03:49.000000000 +0100 +++ gcc/config/i386/avx512fintrin.h 2014-01-30 18:45:41.867595415 +0100 @@ -4840,7 +4840,7 @@ _mm512_cvtusepi64_epi32 (__m512i __A) (__mmask8) -1); } -extern __inline +extern __inline void __attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) _mm512_mask_cvtusepi64_storeu_epi32 (void* __P, __mmask8 __M, __m512i __A) {