Package: tcc / 0.9.27~git20161217.cd9514ab-3

0002-Disable-test-not-working-on-i386.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
From ef905272c2027276a00c1a8d0950c2f46eade78e Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <robotux@celest.fr>
Date: Sun, 17 Feb 2013 23:39:08 +0100
Subject: 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: 2016-12-17
---
 tests/tcctest.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/tcctest.c b/tests/tcctest.c
index 0f714822..23fa9f9d 100644
--- a/tests/tcctest.c
+++ b/tests/tcctest.c
@@ -3140,6 +3140,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")));
@@ -3161,6 +3162,7 @@ char * get_asm_string (void)
   char * str = ((char*)bug_table) + bug_table[1];
   return str;
 }
+#endif
 
 unsigned int set;
 
@@ -3319,7 +3321,9 @@ void asm_test(void)
     if (!somebool)
       printf("asmbool: failed\n");
 #endif
+#ifndef __i386__
     printf("asmstr: %s\n", get_asm_string());
+#endif
     val = 43;
     fancy_copy (&val, &val2);
     printf ("fancycpy(%d)=%d\n", val, val2);