From patchwork Sun Nov 19 11:33:49 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: 839310 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-467320-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="fM8kR5l1"; 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 3yfqW446NYz9ryT for ; Sun, 19 Nov 2017 22:34:07 +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=CqlD8kINadHcuAXiZtAVRmciy+5kup4hTrFbiLzBJEsHM8YTnY eBy/bjpzHOQ9vzKL9wni0enKdczZ1x38Ic59u2NHtAzKOvRvQR7yb3sgyVPmgcDG g7C57Hv9bWrl/x/LC4i747LQtgHaUXsZdEQzNN2ZoFmIr0S2CStR32guU= 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=9Dq5+VfJwpl0xPTsE6VDqCV6SY4=; b=fM8kR5l18oDFuotuF1su z8xe8hcSxcQtdFXtcZ+iRXX4WOpwr4Y29SfHVa8hae+JP10yAIHpOljFOew9os6u aKt7804yNHZLXYV5V6VMVbJzMEm04gapBohfJGbVYWKnyHUr3hrpWUK+TtxF4era 6XKlACHQ3E43FIWPCMa2SrQ= Received: (qmail 118518 invoked by alias); 19 Nov 2017 11:34:00 -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 118508 invoked by uid 89); 19 Nov 2017 11:33:59 -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=Hx-languages-length:1227, HTo:U*rth 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:33:57 +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 1eGNrF-0004R6-TX from Tom_deVries@mentor.com ; Sun, 19 Nov 2017 03:33:53 -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:33:50 +0000 To: , Tristan Gingold CC: GCC Patches From: Tom de Vries Subject: [libgcc, alpha, vms] Remove semicolon after do {} while (0) in UPDATE_FS_FOR_CFA_GR Message-ID: Date: Sun, 19 Nov 2017 12:33:49 +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 UPDATE_FS_FOR_CFA_GR. This allows the macro to be used in if-then-elses without curly braces. I don't manage to build alpha-dec-vms far enough to trigger this patch. Can somebody with a proper setup build and test this patch, or approve as trivial? Thanks, - Tom [libgcc, alpha, vms] Remove semicolon after do {} while (0) in UPDATE_FS_FOR_CFA_GR 2017-11-19 Tom de Vries * config/alpha/vms-unwind.h (UPDATE_FS_FOR_CFA_GR): Remove semicolon after "do {} while (0)". --- libgcc/config/alpha/vms-unwind.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/config/alpha/vms-unwind.h b/libgcc/config/alpha/vms-unwind.h index e44b402..78f5cad 100644 --- a/libgcc/config/alpha/vms-unwind.h +++ b/libgcc/config/alpha/vms-unwind.h @@ -52,7 +52,7 @@ extern int SYS$GL_CALL_HANDL; do { \ (FS)->regs.reg[GRN].how = REG_SAVED_OFFSET; \ (FS)->regs.reg[GRN].loc.offset = (_Unwind_Sword) ((REG) (LOC) - (REG) (CFA)); \ -} while (0); +} while (0) #define GIVEUP_ON_FAILURE(STATUS) \ { if ((((STATUS) & 1) != 1)) return _URC_END_OF_STACK; }