[PATCH 4/8] define __PRAGMA_REDEFINE_EXTNAME

[email protected]
Newsgroups org.kernel.vger.smatch
Message-ID <[email protected]>
From: John Levon <[email protected]>

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 <[email protected]>
Signed-off-by: Luc Van Oostenryck <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.