0001-Disable-test-not-working-on-i386.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 03caadcb4ece5dbeb807601521bd1591c442db1c Mon Sep 17 00:00:00 2001
  2. From: Thomas Preud'homme <robotux@celest.fr>
  3. Date: Sun, 17 Feb 2013 23:39:08 +0100
  4. Subject: Disable test not working on i386
  5. get_asm_string function does not compile with GCC on i386 and thus makes
  6. the testsuite fail on i386. This is a testism so it is fine do simply
  7. disable the test on such platform while upstream fixes it.
  8. Origin: vendor
  9. Forwarded: no
  10. Last-Update: 2018-02-21
  11. ---
  12. tests/tcctest.c | 4 ++++
  13. 1 file changed, 4 insertions(+)
  14. diff --git a/tests/tcctest.c b/tests/tcctest.c
  15. index 4ac2cc00..a6742422 100644
  16. --- a/tests/tcctest.c
  17. +++ b/tests/tcctest.c
  18. @@ -3238,6 +3238,7 @@ void override_func2 (void)
  19. printf ("asmc: override2\n");
  20. }
  21. +#ifndef __i386__
  22. /* This checks a construct used by the linux kernel to encode
  23. references to strings by PC relative references. */
  24. extern int bug_table[] __attribute__((section("__bug_table")));
  25. @@ -3277,6 +3278,7 @@ char * get_asm_string (void)
  26. return (char *) "A string";
  27. #endif
  28. }
  29. +#endif
  30. /* This checks another constructs with local labels. */
  31. extern unsigned char alld_stuff[];
  32. @@ -3570,7 +3572,9 @@ void asm_test(void)
  33. the global one, not the local decl from this function. */
  34. asm volatile(".weak override_func3\n.set override_func3, base_func");
  35. override_func3();
  36. +#ifndef __i386__
  37. printf("asmstr: %s\n", get_asm_string());
  38. +#endif
  39. asm_local_label_diff();
  40. #endif
  41. asm_local_statics();