Skip to content

Commit 9fbd849

Browse files
authored
Merge pull request #13083 from bosilca/topic/extend_13027
Add a link to the gcc discussion about patcher.
2 parents a857057 + 6e3ac41 commit 9fbd849

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

opal/mca/patcher/patcher.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
#if defined(PLATFORM_ARCH_POWERPC) && defined(PLATFORM_ARCH_64)
2828

2929
/* special processing for ppc64 to save and restore TOC (r2)
30-
* Reference: "64-bit PowerPC ELF Application Binary Interface Supplement 1.9" */
30+
* 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+
*/
3135
# define OPAL_PATCHER_BEGIN \
3236
unsigned long toc_save; \
3337
asm volatile("std 2, %0" : "=m"(toc_save) :: "memory"); \

0 commit comments

Comments
 (0)