forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-util/systemtap: tweak operand constraints for ia64, bug #510134
Reported-by: Émeric Maschino Closes: https://bugs.gentoo.org/510134 Package-Manager: Portage-2.3.13, Repoman-2.3.4
- Loading branch information
Sergei Trofimovich
committed
Nov 7, 2017
1 parent
cac4e82
commit aba6b82
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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 | ||
diff --git a/cache.cxx b/cache.cxx | ||
index 3546b30..2710abf 100644 | ||
--- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters