aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-26 20:31:14 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-26 20:31:14 +0100
commitf3e5649150df4d58c97bbedef71a14c4f707feed (patch)
tree524376a97829886fb7bc02544878b594d820a275 /tests
parentf63c7509427cb0a18168cac07775ac5f2a729e11 (diff)
downloadtinycc-f3e5649150df4d58c97bbedef71a14c4f707feed.tar.gz
tinycc-f3e5649150df4d58c97bbedef71a14c4f707feed.tar.bz2
Don't do builtin_frame_address test with ARM gcc
gcc fails the builtin_frame_address test on ARM so we disable it. As a consequence, the diff between gcc and tcc's output is unecessarily bigger. Given the big size of the diff currently, this doesn't make a big difference but may allow to detect a regression in tcc's implementation of builtin_frame_address.
Diffstat (limited to 'tests')
-rw-r--r--tests/tcctest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index 6f75a4e..925418a 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -2695,7 +2695,9 @@ void bfa2(ptrdiff_t str_offset)
void bfa1(ptrdiff_t str_offset)
{
printf("bfa1: %s\n", (char *)__builtin_frame_address(1) + str_offset);
+#if defined(__arm__) && !defined(__GNUC__)
bfa2(str_offset);
+#endif
}
void builtin_frame_address_test(void)