Return-Path: Received: from [8.12.47.4] ([8.12.47.4]:17199 "EHLO jlevon" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726590AbgAWLBb (ORCPT ); Thu, 23 Jan 2020 06:01:31 -0500 From: john.levon@joyent.com Subject: [PATCH 4/8] define __PRAGMA_REDEFINE_EXTNAME Date: Thu, 23 Jan 2020 02:56:59 -0800 Message-Id: <20200123105703.17454-5-john.levon@joyent.com> In-Reply-To: <20200123105703.17454-1-john.levon@joyent.com> References: <20200123105703.17454-1-john.levon@joyent.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: smatch-owner@vger.kernel.org List-ID: To: smatch@vger.kernel.org Cc: John Levon , Luc Van Oostenryck From: John Levon As per: https://gcc.gnu.org/onlinedocs/gcc-4.6.3/gcc/Symbol_002dRenaming-Pragmas.html we should set this define. Signed-off-by: John Levon Signed-off-by: Luc Van Oostenryck --- lib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib.c b/lib.c index 605e4bb6..7da06530 100644 --- a/lib.c +++ b/lib.c @@ -1303,6 +1303,8 @@ static void predefined_macros(void) if (optimize_size) predefine("__OPTIMIZE_SIZE__", 0, "1"); + predefine("__PRAGMA_REDEFINE_EXTNAME", 1, "1"); + // Temporary hacks predefine("__extension__", 0, NULL); predefine("__pragma__", 0, NULL); -- 2.23.0