0002-mednafen-buggy-test-gcc-81740.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Removed buggy test for GCC 81740 bug.
  2. Signed-off-by: "Michel Stempin" <michel.stempin@wanadoo.fr>
  3. ---
  4. tests.cpp | 6 +++++-
  5. 1 file changed, 5 insertions(+), 1 deletion(-)
  6. --- mednafen-0.9.48.orig/src/tests.cpp
  7. +++ mednafen-0.9.48/src/tests.cpp
  8. @@ -766,6 +766,8 @@ void NO_INLINE NO_CLONE TestGCC80631(voi
  9. assert(TestGCC80631_Sub(p) == 0);
  10. }
  11. +// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82750
  12. +#ifdef BUGGY_TEST_GCC81740
  13. NO_INLINE NO_CLONE void TestGCC81740_Sub(int* p, unsigned count)
  14. {
  15. static const int good[20] = { 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 10, 5, 6, 7, 8, 15, 10, 11, 12, 13 };
  16. @@ -791,7 +793,7 @@ NO_INLINE NO_CLONE void TestGCC81740(voi
  17. TestGCC81740_Sub(&v[0][0], sizeof(v) / sizeof(int));
  18. }
  19. -
  20. +#endif
  21. template<typename A, typename B>
  22. void NO_INLINE NO_CLONE TestSUCompare_Sub(A a, B b)
  23. @@ -2045,7 +2047,9 @@ bool MDFN_RunMathTests(void)
  24. TestGCC70941();
  25. TestGCC71488();
  26. TestGCC80631();
  27. +#ifdef BUGGY_TEST_GCC81740
  28. TestGCC81740();
  29. +#endif
  30. TestModTern();
  31. TestBWNotMask31GTZ();