From: dj Date: Thu, 16 Oct 2014 05:03:32 +0000 (+0000) Subject: * tree-core.h: Fix comment to not assume pointers are multiples of X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=926ddd2c21109629ecf1906276cfe28b14b52f92;p=thirdparty%2Fgcc.git * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9823522f20e9..a936c0168119 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-10-16 DJ Delorie + + * tree-core.h: Fix comment to not assume pointers are multiples of + bytes. + 2014-10-15 Tom Tromey * timevar.h (class auto_timevar): New class. diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 7c5152810687..ea7a990ff43d 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2014-10-16 DJ Delorie + + * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are + multiples of bytes. + 2014-10-14 Jason Merrill PR c++/63455 diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index c0fcde760497..7e2ae672adc7 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", diff --git a/gcc/tree-core.h b/gcc/tree-core.h index c9004fd9771a..b69312b0c40d 100644 --- a/gcc/tree-core.h +++ b/gcc/tree-core.h @@ -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