From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-util/systemtap/files/systemtap-3.1-ia64.patch | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dev-util/systemtap/files/systemtap-3.1-ia64.patch (limited to 'dev-util/systemtap/files/systemtap-3.1-ia64.patch') diff --git a/dev-util/systemtap/files/systemtap-3.1-ia64.patch b/dev-util/systemtap/files/systemtap-3.1-ia64.patch new file mode 100644 index 000000000000..832bfc1a47f9 --- /dev/null +++ b/dev-util/systemtap/files/systemtap-3.1-ia64.patch @@ -0,0 +1,33 @@ +Workaround build failure on ia64 + +Avoid 'o' constraint to allow gcc to select register operand. +That way instruction selector can satisfy all constraints +for PROBE2 macro. + +Reported-by: Émeric Maschino +Bug: https://bugs.gentoo.org/510134 +--- a/cache.cxx ++++ b/cache.cxx +@@ -8,2 +8,10 @@ + ++#ifdef __ia64__ ++// Default is: nor ++// We disable 'o' because gcc fails to select register ++// constraint for second instruction in 'add_script_to_cache' ++// https://bugs.gentoo.org/510134 ++# define STAP_SDT_ARG_CONSTRAINT nr ++#endif ++ + #include "config.h" +--- a/staprun/mainloop.c ++++ b/staprun/mainloop.c +@@ -1 +1,9 @@ ++#ifdef __ia64__ ++// Default is: nor ++// We disable 'o' because gcc fails to select register ++// constraint for second instruction in 'add_script_to_cache' ++// https://bugs.gentoo.org/510134 ++# define STAP_SDT_ARG_CONSTRAINT nr ++#endif ++ + /* -*- linux-c -*- -- cgit v1.2.3