We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a857057 + 6e3ac41 commit 9fbd849Copy full SHA for 9fbd849
opal/mca/patcher/patcher.h
@@ -27,7 +27,11 @@
27
#if defined(PLATFORM_ARCH_POWERPC) && defined(PLATFORM_ARCH_64)
28
29
/* special processing for ppc64 to save and restore TOC (r2)
30
- * Reference: "64-bit PowerPC ELF Application Binary Interface Supplement 1.9" */
+ * Reference: "64-bit PowerPC ELF Application Binary Interface Supplement 1.9"
31
+ *
32
+ * As suggested here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95692
33
+ * we need to clobber the memory to guarantee ordering.
34
+ */
35
# define OPAL_PATCHER_BEGIN \
36
unsigned long toc_save; \
37
asm volatile("std 2, %0" : "=m"(toc_save) :: "memory"); \
0 commit comments