aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-02-03 12:26:49 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-02-03 12:28:25 +0800
commit1415d7e6b6c41faf735c9aff513ec2fd6c864d38 (patch)
treeb3ac3cbe7db671f1625c2e3f22cf0e815fc694fe
parent4760804dbac18646d9c3cbfaa88cee962f195cda (diff)
downloadtinycc-1415d7e6b6c41faf735c9aff513ec2fd6c864d38.tar.gz
tinycc-1415d7e6b6c41faf735c9aff513ec2fd6c864d38.tar.bz2
Don't perform builtin_frame_address on ARM
-rw-r--r--tests/tcctest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c
index f302572..d185111 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -2820,16 +2820,17 @@ 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)
{
+/* builtin_frame_address fails on ARM with gcc which make test3 fail */
+#ifndef __arm__
char str[] = "__builtin_frame_address";
char *fp0 = __builtin_frame_address(0);
printf("str: %s\n", str);
bfa1(str-fp0);
+#endif
}