Smatch (Semantic Matching Tool) development
 help / color / mirror / Atom feed
* [PATCH] arch: add missing predefines: __amd64 & __amd64__
@ 2020-01-20  9:51 john.levon
  2020-01-22 15:44 ` Dan Carpenter
  0 siblings, 1 reply; 4+ messages in thread
From: john.levon @ 2020-01-20  9:51 UTC (permalink / raw)
  To: smatch; +Cc: Luc Van Oostenryck

From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>

These seem to be defined whenever the __x86_64 and
__x86_64__ macros are defined.

So, do the same here too.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 lib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib.c b/lib.c
index ee62eac1..9e72e8c4 100644
--- a/lib.c
+++ b/lib.c
@@ -1390,6 +1390,8 @@ static void predefined_macros(void)
 		if (arch_m64 != ARCH_LP32) {
 			predefine("__x86_64__", 1, "1");
 			predefine("__x86_64", 1, "1");
+			predefine("__amd64__", 1, "1");
+			predefine("__amd64", 1, "1");
 			break;
 		}
 		/* fall-through */
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-22 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-20  9:51 [PATCH] arch: add missing predefines: __amd64 & __amd64__ john.levon
2020-01-22 15:44 ` Dan Carpenter
2020-01-22 15:55   ` John Levon
2020-01-22 18:06     ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox