Commit 5b8300ea by DJ Delorie Committed by DJ Delorie

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
parent 30b444d5
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.
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
......
......@@ -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",
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment