aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-09-26 21:52:57 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:12 +0100
commitce55d03eef8cefff5ed731c0e1176425d59c600f (patch)
tree7d2d70b30c3e8b84f727196c0f3d9a876024ad82 /libtcc.c
parentfb933ae0eb25af6b03c0098902d215fa7fe7fdbd (diff)
downloadtinycc-ce55d03eef8cefff5ed731c0e1176425d59c600f.tar.gz
tinycc-ce55d03eef8cefff5ed731c0e1176425d59c600f.tar.bz2
Handle __builtin_extract_return_addr
Our architectures don't need anything special for this builtin, just pass through the argument.
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c3
1 files changed, 3 insertions, 0 deletions
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;
}