diff options
author | Thomas Preud'homme <robotux@celest.fr> | 2013-02-17 23:39:08 +0100 |
---|---|---|
committer | Thomas Preud'homme <robotux@celest.fr> | 2018-02-21 23:25:57 +0000 |
commit | 557d51707f31b75321fc25d80e5bf249895d171c (patch) | |
tree | a318d8c4c937884f23deb6c48584b590d2efc1db | |
parent | e2ccf3981d78dfeb390d22c74625b60310100abb (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 57670be..3e0ae8b 100644 --- a/tests/tcctest.c +++ b/tests/tcctest.c @@ -3184,6 +3184,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"))); @@ -3205,6 +3206,7 @@ char * get_asm_string (void) char * str = ((char*)bug_table) + bug_table[1]; return str; } +#endif /* This checks another constructs with local labels. */ extern unsigned char alld_stuff[]; @@ -3460,7 +3462,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(); asm_local_statics(); #endif |