aboutsummaryrefslogtreecommitdiff
path: root/tcctok.h
diff options
context:
space:
mode:
authorEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-03-06 21:01:14 +0000
committerEdmund Grimley Evans <Edmund.Grimley.Evans@gmail.com>2015-03-06 21:01:14 +0000
commit238e760a294ca74e46d8545f0fb80ea2af522f2b (patch)
tree58f575ac0fa1d1d5bda2b4479d479d1359367a65 /tcctok.h
parent8764993c0d23d11102dc548eb318e489a665391f (diff)
downloadtinycc-238e760a294ca74e46d8545f0fb80ea2af522f2b.tar.gz
tinycc-238e760a294ca74e46d8545f0fb80ea2af522f2b.tar.bz2
Add __builtin_return_address.
Implementation is mostly shared with __builtin_frame_address. It seems to work on arm64, i386 and x86_64. It may need to be adapted for other targets.
Diffstat (limited to 'tcctok.h')
-rw-r--r--tcctok.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcctok.h b/tcctok.h
index 9fba455..d78eb93 100644
--- a/tcctok.h
+++ b/tcctok.h
@@ -130,6 +130,7 @@
DEF(TOK_builtin_types_compatible_p, "__builtin_types_compatible_p")
DEF(TOK_builtin_constant_p, "__builtin_constant_p")
DEF(TOK_builtin_frame_address, "__builtin_frame_address")
+ DEF(TOK_builtin_return_address, "__builtin_return_address")
#ifdef TCC_TARGET_X86_64
#ifdef TCC_TARGET_PE
DEF(TOK_builtin_va_start, "__builtin_va_start")