From patchwork Fri Jun 8 15:41:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 926892 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-479360-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="RFTN0xRN"; 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 412RV12HpSz9s01 for ; Sat, 9 Jun 2018 01:41:43 +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 :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=scuTBEEaiasBV2gdagZwd7lAcKxC9R8vNa0t4oifWVY6lE wiP1c1Fx1adRt/zblbZVUUAl8ttustzqG1O6BLaCPtjZBOmh+zq0DEGyeVPW+dsS mqXPF2AKrYlOfOSBlQ8a/dIrp6SxLTqKt/4QF/qHyUyH3XwseDM1UkPF//ZxY= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=wRKZJE62koHuzkhHIgnd0+EEfs4=; b=RFTN0xRNfWNWkcYgFZjj oOhOnNPqCdBVwqVvZOQDJs1FFbBIf9BjQ00J6939n97fW0+FsZBQ6fXGjlya6GA7 WGFvc59rjVjhnn+8yul/wbpbWyHiA+5lg7SbcOjaFjFyWVwG6mMlVEe0IpGiGuJL I/IdCvDkTN20s2zrb1fS3Jk= Received: (qmail 62389 invoked by alias); 8 Jun 2018 15:41:36 -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 62375 invoked by uid 89); 8 Jun 2018 15:41:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.0 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=protect X-HELO: mail-lf0-f67.google.com Received: from mail-lf0-f67.google.com (HELO mail-lf0-f67.google.com) (209.85.215.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 08 Jun 2018 15:41:34 +0000 Received: by mail-lf0-f67.google.com with SMTP id 36-v6so20708168lfr.11 for ; Fri, 08 Jun 2018 08:41:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NYCL4hs87Kh8Glstg9kl3fmQq0hF9RwlKf/TS5iKlvA=; b=rlCFsDWhvFCFP1BAgTMWrCenTb5buA1D+MM7nz0iDNP9wDGXnaR7VVTBx4fJ418tIY igk1njbFH+l2vOG7a/TN4ItpeLI3+Gyrwpx010D85VeMyJnJeuO4+PcL/fF1/5lDLLGB FVzTDTUa/h6A5rBWuRGgMHVsL4KmWUHe0Q7wG57TasLfqRCz3itZKxAaQBvjARJY1X4+ ECHVretUk24j3SOR0wFAAA1Jvc6Ujjt5jlalRbUaBqGby63h9sh+d6HtoeFo1zWZwN+p fe7roKmIHCn2ArAJIOTL0q6HT2XvCcaIGv8/4+zo18M/3rrBtNmp1B0UxpqjgicLKGyX zSCg== X-Gm-Message-State: APt69E2tNifaUzMPqcEknhLlR57Fm0/D/gh3lHAHuaofhxNvt6GgDvQT vxieiX6Ep92pvI1IPvGT9/vqefps0QG59HqfbH3HAQ== X-Google-Smtp-Source: ADUXVKIafsLioxxgTRdS7tNsBzr5EjGKADQ4HihtBbZWIVkITMkDPGqD1mV4z0pRzqAwB3QkomZZKcCs2K7D1htkIH8= X-Received: by 2002:a2e:2161:: with SMTP id h94-v6mr5161142ljh.58.1528472491679; Fri, 08 Jun 2018 08:41:31 -0700 (PDT) MIME-Version: 1.0 From: David Edelsohn Date: Fri, 8 Jun 2018 11:41:20 -0400 Message-ID: Subject: [PATCH] Protect rs6000_passes_ieee128 declaration To: GCC Patches , Segher Boessenkool The new variable rs6000_passes_ieee128 is not referenced on non-ELF paths. This patch protects the definition to avoid unused variable warnings. Thanks, David * config/rs6000/rs6000.c (rs6000_passes_ieee128): Protect with #if TARGET_ELF. Index: rs6000.c =================================================================== --- rs6000.c (revision 261335) +++ rs6000.c (working copy) @@ -197,12 +197,14 @@ of this machine mode. */ scalar_int_mode rs6000_pmode; +#if TARGET_ELF /* Note whether IEEE 128-bit floating point was passed or returned, either as the __float128/_Float128 explicit type, or when long double is IEEE 128-bit floating point. We changed the default C++ mangling for these types and we may want to generate a weak alias of the old mangling (U10__float128) to the new mangling (u9__ieee128). */ static bool rs6000_passes_ieee128; +#endif /* Generate the manged name (i.e. U10__float128) used in GCC 8.1, and not the name used in current releases (i.e. u9__ieee128). */