From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9445 invoked by alias); 21 Jan 2014 10:36:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 9328 invoked by uid 89); 21 Jan 2014 10:36:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 21 Jan 2014 10:36:19 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id EC986116517 for ; Tue, 21 Jan 2014 05:36:17 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id j2lck2px90hY for ; Tue, 21 Jan 2014 05:36:17 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 8BF9611646D for ; Tue, 21 Jan 2014 05:36:17 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 4C4DCE0992; Tue, 21 Jan 2014 14:36:18 +0400 (RET) From: Joel Brobecker To: gdb-patches@sourceware.org Subject: [PATCH 2/2] Add ARI (ok) marker for __func__ reference in common-utils.h Date: Tue, 21 Jan 2014 10:36:00 -0000 Message-Id: <1390300575-6998-2-git-send-email-brobecker@adacore.com> In-Reply-To: <1390300575-6998-1-git-send-email-brobecker@adacore.com> References: <20140118015244.GA22787@sourceware.org> <1390300575-6998-1-git-send-email-brobecker@adacore.com> X-SW-Source: 2014-01/txt/msg00808.txt.bz2 Hello, The ARI script flagged the use of the __func__ variable, which is normally not allowed (not defined in C90). However, this particular use is OK, as the reference is only made when __STDC_VERSION__ >= 199901L. So, add an "ARI:" comment to explicitly OK this use. gdb/ChangeLog: * common/common-utils.h: Add "ARI:" comment besides __func__ reference. OK to commit? Thanks, -- Joel --- gdb/common/common-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/common/common-utils.h b/gdb/common/common-utils.h index 5960c55..063698d 100644 --- a/gdb/common/common-utils.h +++ b/gdb/common/common-utils.h @@ -39,7 +39,7 @@ #define FUNCTION_NAME __PRETTY_FUNCTION__ #else #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L -#define FUNCTION_NAME __func__ +#define FUNCTION_NAME __func__ /* ARI: func */ #endif #endif -- 1.8.3.2