From patchwork Sun Nov 19 12:27:35 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: 839311 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-467322-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="EfR0mZrV"; 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 3yfrjD0w2Cz9ryQ for ; Sun, 19 Nov 2017 23:27:52 +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=GoE14l9eOTdcKOq4hCWZmJvV3zq1MoXIO/pVsfNP2QHwadRyLv WuihzIWv/Q6Ll83EMU8lISZmFue51OOt12xqjSSG57pRInR2GY8hlQaQkyXWKCj5 XxbFP1gJmbdm14wURqWtxcgnJjF2B0TIRpw7JHkR4uS/xF+W/01hReMKs= 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=vme4nidMt3+Y9KSINnN7KvI0XUw=; b=EfR0mZrVEqFJKRU553xq yUdCIXlgwcqlgngUydO1ub+mwyhH0gRCe6uprIdMlubHCqe6+tcgFex2FOTJYUf3 r/bt1itUCT37IDqUp/AsvI5q83dD6VYkebx1DdUDFigaiwtJSz9yUZ1MegXjcX83 rZ71VQgGm0xa7Ix4/qbxeWI= Received: (qmail 16368 invoked by alias); 19 Nov 2017 12:27:45 -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 16356 invoked by uid 89); 19 Nov 2017 12:27:45 -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=D*plt, Hx-languages-length:971, atm 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 12:27:43 +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 1eGOhI-0006rr-J9 from Tom_deVries@mentor.com ; Sun, 19 Nov 2017 04:27:40 -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 12:27:37 +0000 To: GCC Patches CC: Claudiu Zissulescu From: Tom de Vries Subject: [arc] Remove semicolon after do while (0) in FUNCTION_PROFILER Message-ID: <85d2fd42-d25d-d271-a697-1998edf17d77@mentor.com> Date: Sun, 19 Nov 2017 13:27:35 +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 FUNCTION_PROFILER. This allows the macro to be used in if-then-elses without curly braces. Build arc-unkown-elf as far as that goes atm (fails somewhere in libgcc). Committed as trivial. Thanks, - Tom [arc] Remove semicolon after do while (0) in FUNCTION_PROFILER 2017-11-19 Tom de Vries * config/arc/arc.h (FUNCTION_PROFILER): Remove semicolon after "do while (0)". --- gcc/config/arc/arc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index ec28d61..1511949 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -822,7 +822,7 @@ extern int arc_initial_elimination_offset(int from, int to); fprintf (FILE, "\tbl\t__mcount@plt\n"); \ else \ fprintf (FILE, "\tbl\t__mcount\n"); \ - } while (0); + } while (0) #define NO_PROFILE_COUNTERS 1