diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/doc/extend.texi | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb89350..246acc9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-16 Hans-Peter Nilsson <hp@axis.com> + + * doc/extend.texi (Alignment): Say that the ABI controls + the __alignof__ for non-strict-alignment targets rather + than being a recommendation. + 2008-03-15 Paul Brook <paul@codesourcery.com> * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 26a8e70..d114adc 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -3380,7 +3380,8 @@ designs, @code{__alignof__ (double)} is 4 or even 2. Some machines never actually require alignment; they allow reference to any data type even at an odd address. For these machines, @code{__alignof__} -reports the @emph{recommended} alignment of a type. +reports the smallest alignment that GCC will give the data type, usually as +mandated by the target ABI. If the operand of @code{__alignof__} is an lvalue rather than a type, its value is the required alignment for its type, taking into account |