summaryrefslogtreecommitdiff
path: root/gcc/c-family/c-cppbuiltin.c
diff options
context:
space:
mode:
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-16 05:03:32 +0000
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-16 05:03:32 +0000
commit926ddd2c21109629ecf1906276cfe28b14b52f92 (patch)
tree48885f2a8215f53261c5e511ea2890a09e02f1bc /gcc/c-family/c-cppbuiltin.c
parent6d7330560801012aa17f5d9c210f4c75596d283d (diff)
downloadgcc-926ddd2c21109629ecf1906276cfe28b14b52f92.tar.gz
* tree-core.h: Fix comment to not assume pointers are multiples of
bytes. * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are multiples of bytes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216296 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.c')
-rw-r--r--gcc/c-family/c-cppbuiltin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
index c0fcde76049..7e2ae672adc 100644
--- a/gcc/c-family/c-cppbuiltin.c
+++ b/gcc/c-family/c-cppbuiltin.c
@@ -671,7 +671,7 @@ cpp_atomic_builtins (cpp_reader *pfile)
/* ptr_type_node can't be used here since ptr_mode is only set when
toplev calls backend_init which is not done with -E or pch. */
- psize = POINTER_SIZE / BITS_PER_UNIT;
+ psize = POINTER_SIZE_UNITS;
if (psize >= SWAP_LIMIT)
psize = 0;
builtin_define_with_int_value ("__GCC_ATOMIC_POINTER_LOCK_FREE",