Skip to content

Commit

Permalink
Merge r162137 - Source/WTF/wtf/Atomics.h:300: Error: bad register nam…
Browse files Browse the repository at this point in the history
…e `%bpl'

https://bugs.webkit.org/show_bug.cgi?id=126985

Reviewed by Csaba Osztrogonác.

Use the 'q' constraint to force using a register that allows
access to its lower byte.

* wtf/Atomics.h:
(WTF::weakCompareAndSwap):
  • Loading branch information
bertogg authored and carlosgcampos committed Jan 21, 2014
1 parent 9470f4d commit f80e15c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Source/WTF/ChangeLog
@@ -1,3 +1,16 @@
2014-01-16 Alberto Garcia <berto@igalia.com>

Source/WTF/wtf/Atomics.h:300: Error: bad register name `%bpl'
https://bugs.webkit.org/show_bug.cgi?id=126985

Reviewed by Csaba Osztrogonác.

Use the 'q' constraint to force using a register that allows
access to its lower byte.

* wtf/Atomics.h:
(WTF::weakCompareAndSwap):

2014-01-15 Alberto Garcia <berto@igalia.com>

[GTK] v2.3.3 fails to build in Debian / FreeBSD
Expand Down
2 changes: 1 addition & 1 deletion Source/WTF/wtf/Atomics.h
Expand Up @@ -284,7 +284,7 @@ inline bool weakCompareAndSwap(uint8_t* location, uint8_t expected, uint8_t newV
"lock; cmpxchgb %3, %2\n\t"
"sete %1"
: "+a"(expected), "=q"(result), "+m"(*location)
: "r"(newValue)
: "q"(newValue)
: "memory"
);
return result;
Expand Down

0 comments on commit f80e15c

Please sign in to comment.