From patchwork Thu Oct 3 23:56:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 1171499 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-510191-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bell.net Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="Q4+CbnMF"; 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 46kqfw2t9Bz9sCJ for ; Fri, 4 Oct 2019 09:56:55 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=dmuf0O3xCBpQobPp /x/mECSYvItI84qKqF025onzJDWKAHZq5nwLGMzJFbCDiNH4nEc7Iqdrvio62WSA qRAmulkTggIX3cOKWyEvFToJKWYamI0c3t9cY6KZLHl7sWgrHL18kDbmdyTM3Hls S6ADNxTGcKd3SZLJz8Pk2XQBF5k= 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 :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=IA6Vw3N9390TG1zaszkaya ZIXH4=; b=Q4+CbnMFqXEEqwFjD5fGN+K62FkknoRlim8tjG3ejIkhpGCiG8aWPN ExCX/VLxC+Z9YArSej2o0PM2pFmDX4NOLAXqWmgCSH0Y9dMk+oF0LIxnUfhI79jA lSoXHDbINn9KLAOyJArskqdW+7ta75DHTrvimYYNkHH/wX463thdM= Received: (qmail 15147 invoked by alias); 3 Oct 2019 23:56:48 -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 15139 invoked by uid 89); 3 Oct 2019 23:56:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-8.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 spammy= X-HELO: mtlfep01.bell.net Received: from belmont79srvr.owm.bell.net (HELO mtlfep01.bell.net) (184.150.200.79) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 03 Oct 2019 23:56:47 +0000 Received: from bell.net mtlfep01 184.150.200.30 by mtlfep01.bell.net with ESMTP id <20191003235645.JUMB4947.mtlfep01.bell.net@mtlspm01.bell.net> for ; Thu, 3 Oct 2019 19:56:45 -0400 Received: from [192.168.2.49] (really [70.53.53.104]) by mtlspm01.bell.net with ESMTP id <20191003235645.QSEX87666.mtlspm01.bell.net@[192.168.2.49]>; Thu, 3 Oct 2019 19:56:45 -0400 To: GCC Patches From: John David Anglin Subject: [committed] pa: Disable -Warray-bounds in fptr.c Openpgp: preference=signencrypt Message-ID: <7a9b8fbf-c113-0888-e126-077568958d0c@bell.net> Date: Thu, 3 Oct 2019 19:56:45 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 X-CM-Analysis: v=2.3 cv=bJBo382Z c=1 sm=1 tr=0 cx=a_idp_d a=htCe9XT+XAlGhzqgweArVg==:117 a=htCe9XT+XAlGhzqgweArVg==:17 a=IkcTkHD0fZMA:10 a=XobE76Q3jBoA:10 a=mDV3o1hIAAAA:8 a=08oQnDG5RQilqdlI69AA:9 a=QEXdDO2ut3YA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-CM-Envelope: MS4wfN8q6AvS1TmG2yrIu/SMFZ8b9EpCmxFxV8XZ32uJ7AzAxs1RBW48W4+suSysIYlTrLqfUW3Oqaa0/dy0eRrbYABGxMCOHjeuB+D2FlB5QI1RH5tAeTZy FzVKEPi1ohRqCzTf0pFGZUXAaHrYR6o3iOptCKQ9FG0N2sdfbydKVGrw6eJW8h/qijM+m3hajG7Nuw== We do so non standard stuff in __canonicalize_funcptr_for_compare() to handle function pointer canonicalization. The updated -Warray-bounds now causes warnings about negative array offsets. This patch disables the warning in this code. Tested on hppa-unknown-linux-gnu. Committed to trunk. Dave 2019-10-03 John David Anglin * config/pa/fptr.c: Disable -Warray-bounds warning. Index: config/pa/fptr.c =================================================================== --- config/pa/fptr.c (revision 276260) +++ config/pa/fptr.c (working copy) @@ -62,6 +62,9 @@ return result; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Warray-bounds" + /* __canonicalize_funcptr_for_compare must be hidden so that it is not placed in the dynamic symbol table. Like millicode functions, it must be linked into all binaries in order access the got table of @@ -141,3 +144,5 @@ return plabel[0]; } + +#pragma GCC diagnostic pop