summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config/cpu/sh/atomicity.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/config/cpu/sh/atomicity.h')
-rw-r--r--libstdc++-v3/config/cpu/sh/atomicity.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/config/cpu/sh/atomicity.h b/libstdc++-v3/config/cpu/sh/atomicity.h
index 251d49ff2b9..9b240afbcc7 100644
--- a/libstdc++-v3/config/cpu/sh/atomicity.h
+++ b/libstdc++-v3/config/cpu/sh/atomicity.h
@@ -44,7 +44,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
"\tadd\t%3,r0\n"
"\tmovco.l\tr0,@%2\n"
"\tbf\t0b"
- : "+m" (*__mem), "=r" (__result)
+ : "+m" (*__mem), "=&r" (__result)
: "r" (__mem), "rI08" (__val)
: "r0");