Skip to contentSkip to conversation

define __PRAGMA_REDEFINE_EXTNAME

PATCH New [email protected] 1 participant 1 message Jan 20, 2020 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 define __PRAGMA_REDEFINE_EXTNAME

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.

---
 lib.c | 2 ++
 1 file changed, 2 insertions(+)
lib.c +2 -0
index 14e51979..9b03895c 100644
@@ -1507,6 +1507,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);
Signature · 1 line
2.23.0