From patchwork Sun Nov 19 10:55:59 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: 839305 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-467316-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="YA7KLHRb"; 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 3yfpgS3K9jz9ryQ for ; Sun, 19 Nov 2017 21:56:16 +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=YmKGf+FAkzv8X7t3jkAuGE1YaoBuizlzKWPQo7VWeZPj9VDb0n zhE8F7JPhUfN678HbgiMJRw1Rq+0d54RwwncIVXsA4GU/gmSRSsGu4ZSq6PRJiYB JJqNj3kNUti9WVjzrmR8hyGpNHxliWJ5nmopVov1f0aYUKbhP/Nc4Z+MY= 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=VyErsMCEHjuFK/0c/KXkdY8eIe0=; b=YA7KLHRb08eyZYfvzj73 9wtlBYp7sIVilRza8CwVTBkHkpH7c9T+v+3YhaN1SZZ3NRPQeZwNaxij4gzhwY6J iHxPgkPsnpWkIru2ydD1b48cwuThiVzaCwGiZ8yxviXwxojfkhUl7oKhpisWxmE0 ZP97333jmOnqvxgr0ZUQVD8= Received: (qmail 26290 invoked by alias); 19 Nov 2017 10:56:09 -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 26275 invoked by uid 89); 19 Nov 2017 10:56:08 -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=semicolon, sk:asm_out, sk:ASM_OUT, sk:mcore_e 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 10:56:07 +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 1eGNGd-0004PP-UT from Tom_deVries@mentor.com ; Sun, 19 Nov 2017 02:56:03 -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 10:56:00 +0000 To: GCC Patches CC: Nick Clifton From: Tom de Vries Subject: [mcore, committed] Remove semicolon after do {} while (0) in MCORE_EXPORT_NAME Message-ID: <5d0fa8c3-d5e3-c8ae-060f-f5d53ec83b78@mentor.com> Date: Sun, 19 Nov 2017 11:55:59 +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 MCORE_EXPORT_NAME. This allows the macro to be used in if-then-elses without curly braces. Did mcore-unknown-elf build. Committed as obvious. Thanks, - Tom [mcore] Remove semicolon after do {} while (0) in MCORE_EXPORT_NAME 2017-11-14 Tom de Vries * config/mcore/mcore-elf.h (MCORE_EXPORT_NAME): Remove semicolon after "do {} while (0)". * config/mcore/mcore.h (ASM_OUTPUT_ALIGNED_COMMON): After missing semicolon after MCORE_EXPORT_NAME call. --- gcc/config/mcore/mcore-elf.h | 2 +- gcc/config/mcore/mcore.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/mcore/mcore-elf.h b/gcc/config/mcore/mcore-elf.h index 9688a48..c0880c2 100644 --- a/gcc/config/mcore/mcore-elf.h +++ b/gcc/config/mcore/mcore-elf.h @@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see (* targetm.strip_name_encoding) (NAME)); \ in_section = NULL; \ } \ - while (0); + while (0) /* Write the extra assembler code needed to declare a function properly. Some svr4 assemblers need to also have something extra said about the diff --git a/gcc/config/mcore/mcore.h b/gcc/config/mcore/mcore.h index 50d087c..06a9fa6 100644 --- a/gcc/config/mcore/mcore.h +++ b/gcc/config/mcore/mcore.h @@ -684,7 +684,7 @@ extern long mcore_current_compilation_timestamp; do \ { \ if (mcore_dllexport_name_p (NAME)) \ - MCORE_EXPORT_NAME (FILE, NAME) \ + MCORE_EXPORT_NAME (FILE, NAME); \ if (! mcore_dllimport_name_p (NAME)) \ { \ fputs ("\t.comm\t", FILE); \