From patchwork Wed Mar 6 13:45:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1052362 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-497458-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="WR7MfdLl"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mz4pX1/P"; 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 44Dw5B2rHcz9s70 for ; Thu, 7 Mar 2019 00:45:48 +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 :mime-version:from:date:message-id:subject:to:cc:content-type; q=dns; s=default; b=elm8oMIS6QWI09VHBKX6SWghMUC83FuEnCLcepssyzE xYDrH6xa1zivGNIuZqEzD4fjNkIzVOZHNqKImVf5etyTRBlxII38qG17Fj+EnLUu wgUlaubGMwIF33NvVzNZhET6HuRmYXg9kfMw7ai4pRucQPsOKcTcDHEyGebWDW0o = 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:cc:content-type; s=default; bh=af+Avudc6Xqonenlud1UIUH9xos=; b=WR7MfdLl5PxggJBJQ qIk2mTPnQdHBRSsHbwSFGdQlEO70yCVD10dFtDEc+OqDteovotoaR0WMIeIeW9wG i3awrZEl5t7MYDvfKincDTM8NX511yuj+daDZVxY3/buw0o7movpEx8RaX/elVBC Akla2NnBsyUEkvTESXu7/Mpw+0= Received: (qmail 121240 invoked by alias); 6 Mar 2019 13:45:40 -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 121120 invoked by uid 89); 6 Mar 2019 13:45:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?iso-8859-1?q?No=2C_score=3D-26=2E9_required=3D5=2E?= =?iso-8859-1?q?0_tests=BAYES_00=2CFREEMAIL_FROM=2CGIT_PATCH_0=2CGI?= =?iso-8859-1?q?T_PATCH_1=2CGIT_PATCH_2=2CGIT_PATCH_3=2CRCVD_IN_DNS?= =?iso-8859-1?q?WL_NONE=2CSPF_PASS_autolearn=3Dham_version=3D3=2E3?= =?iso-8859-1?q?=2E2_spammy=3DHx-languages-length=3A1033=2C_Uro=C5?= =?iso-8859-1?q?=A1=2C_uro=C5=A1=2C_Uro?= X-HELO: mail-io1-f52.google.com Received: from mail-io1-f52.google.com (HELO mail-io1-f52.google.com) (209.85.166.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Mar 2019 13:45:39 +0000 Received: by mail-io1-f52.google.com with SMTP id 9so10221465iog.8 for ; Wed, 06 Mar 2019 05:45:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=olz8tRni8EcE8uIgeRUjdZKB9DB7Ho7HL/6Q7hcpzFM=; b=mz4pX1/PC9G3P4FRpknqkQvrU77wF5PpeTUH9zL22PIQTyMbZz/AuU2HU81o05GO/3 sUyZUjR3F34pQ4slKwJM/gTYLc0U3tTzQAlo6n8dOg6aHI/b6gtJHYgB8dmi9WZhMhOl jc0BM1sq/2WRzmDd7PdxaLT59JCaAZ/zTnFa3DY6ev7c3mphXspzTrVollCjnFHaTd6m GhyDS2S4a3hs3/Pa2fgtCVQRL5HVLdV0tItKiv5fqf5IkcNyWqnTmdFRCRLW/jS3Yrxb RLrO2FUE5Hfhtln0DdM5R13AtmoWx/iUbqS6ASH8PUExa371fLlw+kC291Y+Uet0HMyF ntRw== MIME-Version: 1.0 From: Uros Bizjak Date: Wed, 6 Mar 2019 14:45:23 +0100 Message-ID: Subject: [PATCH, libobjc]: Avoid "DFmode" redefinition warning To: "gcc-patches@gcc.gnu.org" Cc: Andrew Pinski The attached patch removes /space/homedirs/uros/gcc-svn/trunk/libobjc/encoding.c:84: warning: "DFmode" redefined 84 | #define DFmode _C_DBL | In file included from ../.././gcc/tm.h:36, from /space/homedirs/uros/gcc-svn/trunk/libobjc/encoding.c:37: ../.././gcc/insn-modes.h:210: note: this is the location of the previous definition 210 | #define DFmode (scalar_float_mode ((scalar_float_mode::from_int) E_DFmode)) | warning. 2019-03-06 Uroš Bizjak * encoding.c (DFmode): #undef before #define. Bootstrapped on x86_64-linux-gnu {,-m32}. OK for mainline? Uros. diff --git a/libobjc/encoding.c b/libobjc/encoding.c index adac546..ef34fc8 100644 --- a/libobjc/encoding.c +++ b/libobjc/encoding.c @@ -81,6 +81,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #define DECL_MODE(TYPE) *(TYPE) #define TYPE_MODE(TYPE) *(TYPE) +#undef DFmode #define DFmode _C_DBL #define strip_array_types(TYPE) ({const char *_field = (TYPE); \