summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorams <ams@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-14 10:18:41 +0000
committerams <ams@138bc75d-0d04-0410-961f-82ee72b054a4>2009-09-14 10:18:41 +0000
commitcb8b659d5a02b2da5deaa36be7592c52258e9740 (patch)
treed029b18925251e8bfb39a72918f00abd90b058d1 /libstdc++-v3
parenta274d5a7cbdac13e9fc21aab23119883e15acaca (diff)
downloadgcc-cb8b659d5a02b2da5deaa36be7592c52258e9740.tar.gz
2009-09-14 Andrew Stubbs <ams@codesourcery.com>
* config/cpu/sh/atomicity.h (__exchange_and_add): Set earlyclobber constraint. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151682 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/config/cpu/sh/atomicity.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 8cb9560b54f..11695b7b470 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2009-09-14 Andrew Stubbs <ams@codesourcery.com>
+
+ * config/cpu/sh/atomicity.h (__exchange_and_add): Set earlyclobber
+ constraint.
+
2009-09-11 Johannes Singler <singler@ira.uka.de>
* include/parallel/multiway_merge.h
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");