From patchwork Sun Nov 19 11:02:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 839306 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-467317-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="p8179nFg"; 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 3yfpq92dCyz9ryQ for ; Sun, 19 Nov 2017 22:02:59 +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:to:cc :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=pfe7nCHRDxiK+XSlyF7Y0p1r/AWGOEbdwYCt6BOYzpgqmxJq+k EuGmvhzSCaiWm1Fq8sLRbo0WyFAz3+0vtEdikpgVgvQFUA5JXe2bdPex+U774Ilp 18I3DOBUbSMfOuBqc4UW9C17lZTX+V7kQbHr7xuDYfTlbCcP3NpqU4Jik= 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:cc :from:subject:message-id:date:mime-version:content-type; s= default; bh=Td3EIHqtbEvdvxn/ziWeVRdTr+8=; b=p8179nFgsBf2qttP+z9i isJZdaMRmuGAsKDBr741pc2c4h2RsXB3+DkwJkaKvrIDOZYntrAL227Bb6Nh0GDN GedqgMdDahY8O2az3yJ4swFJg/QS6r4PHLEVSkRvFj6+OSQt1pXPmAhpfh2B7CQ6 G1h//OmcnpyjY57Lf3dRefU= Received: (qmail 108134 invoked by alias); 19 Nov 2017 11:02:51 -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 108116 invoked by uid 89); 19 Nov 2017 11:02:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy=4717, sk:REGISTE X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 19 Nov 2017 11:02:49 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1eGNN8-00060h-Ry from Tom_deVries@mentor.com ; Sun, 19 Nov 2017 03:02:46 -0800 Received: from [172.30.72.34] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Sun, 19 Nov 2017 11:02:43 +0000 To: GCC Patches CC: James Bowman , Ulrich Weigand , David Edelsohn From: Tom de Vries Subject: [ft32, spu, committed] Remove semicolon after do {} while (0) in REGISTER_TARGET_PRAGMAS Message-ID: Date: Sun, 19 Nov 2017 12:02:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Hi, this patch removes a semicolon after "do {} while (0)" in REGISTER_TARGET_PRAGMAS. This allows the macro to be used in if-then-elses without curly braces. Build for spu-unknown-elf. Committed as obvious. Thanks, - Tom [ft32, spu] Remove semicolon after do {} while (0) in REGISTER_TARGET_PRAGMAS 2017-11-14 Tom de Vries * config/ft32/ft32.h (REGISTER_TARGET_PRAGMAS): Remove semicolon after "do {} while (0)". * config/spu/spu.h (REGISTER_TARGET_PRAGMAS): Same. --- gcc/config/ft32/ft32.h | 2 +- gcc/config/spu/spu.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/ft32/ft32.h b/gcc/config/ft32/ft32.h index 8bb0d39..b276f25 100644 --- a/gcc/config/ft32/ft32.h +++ b/gcc/config/ft32/ft32.h @@ -471,7 +471,7 @@ do { \ #define REGISTER_TARGET_PRAGMAS() do { \ c_register_addr_space ("__flash__", TARGET_NOPM ? 0 : ADDR_SPACE_PM); \ -} while (0); +} while (0) extern int ft32_is_mem_pm(rtx o); diff --git a/gcc/config/spu/spu.h b/gcc/config/spu/spu.h index cf99b88..efb0464 100644 --- a/gcc/config/spu/spu.h +++ b/gcc/config/spu/spu.h @@ -213,7 +213,7 @@ enum reg_class { #define REGISTER_TARGET_PRAGMAS() do { \ c_register_addr_space ("__ea", ADDR_SPACE_EA); \ targetm.resolve_overloaded_builtin = spu_resolve_overloaded_builtin; \ -}while (0); +}while (0) /* Frame Layout */