diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-17 23:39:08 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2020-08-14 23:04:42 +0100 |
commit | 03caadcb4ece5dbeb807601521bd1591c442db1c (patch) | |
tree | 7b4512fbfcc92b8a8987e3074b56683961a47031 | |
parent | afd09586d7ead4f146ad7a7a471be34196b3c6bc (diff) |
Disable test not working on i386
get_asm_string function does not compile with GCC on i386 and thus makes
the testsuite fail on i386. This is a testism so it is fine do simply
disable the test on such platform while upstream fixes it.
Origin: vendor
Forwarded: no
Last-Update: 2018-02-21
-rw-r--r-- | tests/tcctest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/tcctest.c b/tests/tcctest.c index 4ac2cc0..a674242 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -3238,6 +3238,7 @@ void override_func2 (void) printf ("asmc: override2\n"); } +#ifndef __i386__ /* This checks a construct used by the linux kernel to encode references to strings by PC relative references. */ extern int bug_table[] __attribute__((section("__bug_table"))); @@ -3277,6 +3278,7 @@ char * get_asm_string (void) return (char *) "A string"; #endif } +#endif /* This checks another constructs with local labels. */ extern unsigned char alld_stuff[]; @@ -3570,7 +3572,9 @@ void asm_test(void) the global one, not the local decl from this function. */ asm volatile(".weak override_func3\n.set override_func3, base_func"); override_func3(); +#ifndef __i386__ printf("asmstr: %s\n", get_asm_string()); +#endif asm_local_label_diff(); #endif asm_local_statics(); |