projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
boehm-gc: revert all CACAO-specific modifications; this is now an exact copy of the...
[cacao.git]
/
src
/
mm
/
boehm-gc
/
libatomic_ops-1.2
/
src
/
atomic_ops
/
sysdeps
/
short_atomic_load_store.h
diff --git
a/src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/short_atomic_load_store.h
b/src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/short_atomic_load_store.h
index f1b52818f1b3036b81a5a953a20cddcc39d2188f..9ec9cf423362446f4c3bc35f185da779e15b716c 100644
(file)
--- a/
src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/short_atomic_load_store.h
+++ b/
src/mm/boehm-gc/libatomic_ops-1.2/src/atomic_ops/sysdeps/short_atomic_load_store.h
@@
-21,16
+21,16
@@
*/
/*
*/
/*
- * Definitions for architectur
s on which loads and stores of unsigned short are
- * atomic for all legal alignments.
+ * Definitions for architectur
es on which loads and stores of unsigned short
+ * a
re a
tomic for all legal alignments.
*/
AO_INLINE unsigned short
*/
AO_INLINE unsigned short
-AO_short_load(volatile unsigned short *addr)
+AO_short_load(
const
volatile unsigned short *addr)
{
/* Cast away the volatile for architectures like IA64 where */
/* volatile adds barrier semantics. */
{
/* Cast away the volatile for architectures like IA64 where */
/* volatile adds barrier semantics. */
- return (*(unsigned short *)addr);
+ return (*(
const
unsigned short *)addr);
}
#define AO_HAVE_short_load
}
#define AO_HAVE_short_load