summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-02-17 23:39:08 +0100
committerThomas Preud'homme <robotux@debian.org>2018-02-28 21:03:17 +0000
commit92fd72f127f13688e6e57c3a7f6f6c0764efc4e1 (patch)
treea0484986145120477a7a533ab9f319129509909b
parent3478e0d845708d2ada4b1738e00b1ee215ff1882 (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 Gbp-Pq: Name 0001-Disable-test-not-working-on-i386.patch
-rw-r--r--tests/tcctest.c4
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