aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2023-12-02 21:13:34 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2023-12-03 11:13:47 +0000
commit5b5da69612a3f32311b2855dec87a3d2d523cbdf (patch)
tree33f729eab158243cbbf1385288989c12f0240e38
parentfc4c69b3a879bc17fd2036969e7255ab7b9fcf72 (diff)
downloadports-5b5da69612a3f32311b2855dec87a3d2d523cbdf.tar.gz
ports-5b5da69612a3f32311b2855dec87a3d2d523cbdf.zip
-rw-r--r--math/libpoly/files/patch-test_polyxx_doctest.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/libpoly/files/patch-test_polyxx_doctest.h b/math/libpoly/files/patch-test_polyxx_doctest.h
new file mode 100644
index 000000000000..11cd1d47ef28
--- /dev/null
+++ b/math/libpoly/files/patch-test_polyxx_doctest.h
@@ -0,0 +1,11 @@
+--- test/polyxx/doctest.h.orig 2023-12-02 21:09:53 UTC
++++ test/polyxx/doctest.h
+@@ -459,7 +459,7 @@ namespace doctest { namespace detail {
+ // Break at the location of the failing check if possible
+ #define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("int $3\n" : :) // NOLINT(hicpp-no-assembler)
+ #elif defined(__ppc__) || defined(__ppc64__)
+-#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li r0, 20\nsc\nnop\nli r0, 37\nli r4, 2\nsc\nnop\n" : : : "memory","r0","r3","r4" ) /* NOLINT */
++#define DOCTEST_BREAK_INTO_DEBUGGER() __asm__("li 0, 20\nsc\nnop\nli 0, 37\nli 4, 2\nsc\nnop\n" : : : "memory","0","3","4" ) /* NOLINT */
+ #else
+ #include <signal.h>
+ #define DOCTEST_BREAK_INTO_DEBUGGER() raise(SIGTRAP)