tree-core.h: Fix comment to not assume pointers are multiples of bytes.
authorDJ Delorie <dj@redhat.com>
Thu, 16 Oct 2014 05:03:32 +0000 (01:03 -0400)
committerDJ Delorie <dj@gcc.gnu.org>
Thu, 16 Oct 2014 05:03:32 +0000 (01:03 -0400)
* 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

gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/tree-core.h

index 9823522f20e97ccb17cb7131275f2dfdf1dfacd5..a936c01681194b645c10bc17fceac99e8c00a902 100644 (file)
@@ -1,3 +1,8 @@
+2014-10-16  DJ Delorie  <dj@redhat.com>
+
+       * tree-core.h: Fix comment to not assume pointers are multiples of
+       bytes.
+
 2014-10-15  Tom Tromey  <tromey@redhat.com>
 
        * timevar.h (class auto_timevar): New class.
index 7c5152810687f7be9718f9d0f1c72bd51417b26b..ea7a990ff43d9ddde8893ad154ecedb96a26652f 100644 (file)
@@ -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
index c0fcde7604977f9040c6f6446e3caf8f00545e66..7e2ae672adc71f615385b310ae8f969e25a6e8bb 100644 (file)
@@ -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", 
index c9004fd9771a815b7690179bfd75918475fd1735..b69312b0c40d1d10c90e5e08f8d6bcc3a7350936 100644 (file)
@@ -1173,7 +1173,7 @@ enum omp_clause_map_kind
   OMP_CLAUSE_MAP_TOFROM,
   /* The following kind is an internal only map kind, used for pointer based
      array sections.  OMP_CLAUSE_SIZE for these is not the pointer size,
-     which is implicitly POINTER_SIZE / BITS_PER_UNIT, but the bias.  */
+     which is implicitly POINTER_SIZE_UNITS, but the bias.  */
   OMP_CLAUSE_MAP_POINTER,
   /* Also internal, behaves like OMP_CLAUS_MAP_TO, but additionally any
      OMP_CLAUSE_MAP_POINTER records consecutive after it which have addresses