From ce55d03eef8cefff5ed731c0e1176425d59c600f Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 26 Sep 2016 21:52:57 +0200 Subject: Handle __builtin_extract_return_addr Our architectures don't need anything special for this builtin, just pass through the argument. --- libtcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 1346fa6..76ee11c 100644 --- a/libtcc.c +++ b/libtcc.c @@ -904,6 +904,9 @@ LIBTCCAPI TCCState *tcc_new(void) # endif #endif /* ndef TCC_TARGET_PE */ + /* Some GCC builtins that are simple to express as macros. */ + tcc_define_symbol(s, "__builtin_extract_return_addr(x)", "x"); + return s; } -- cgit v1.3.1