aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2014-10-16 01:03:32 -0400
committerDJ Delorie <dj@gcc.gnu.org>2014-10-16 01:03:32 -0400
commit5b8300ea26b41124950fabf8f7c69624d9657334 (patch)
tree48885f2a8215f53261c5e511ea2890a09e02f1bc /gcc/c-family
parent30b444d5d9fe5a2faa1cbe853944fda6d98f230f (diff)
downloadgcc-5b8300ea26b41124950fabf8f7c69624d9657334.zip
gcc-5b8300ea26b41124950fabf8f7c69624d9657334.tar.gz
gcc-5b8300ea26b41124950fabf8f7c69624d9657334.tar.bz2
tree-core.h: Fix comment to not assume pointers are multiples of bytes.
* 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. From-SVN: r216296
Diffstat (limited to 'gcc/c-family')
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/c-family/c-cppbuiltin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 7c51528..ea7a990 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-16 DJ Delorie <dj@redhat.com>
+
+ * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
+ multiples of bytes.
+
2014-10-14 Jason Merrill <jason@redhat.com>
PR c++/63455
diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c
index c0fcde7..7e2ae67 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",