From: Hans-Peter Nilsson Date: Sun, 16 Mar 2008 15:27:36 +0000 (+0000) Subject: extend.texi (Alignment): Say that the ABI controls the __alignof__ for non-strict... X-Git-Tag: releases/gcc-4.4.0~6008 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a31c49ceb396963e298abb196fe3b099814cd3f;p=thirdparty%2Fgcc.git extend.texi (Alignment): Say that the ABI controls the __alignof__ for non-strict-alignment targets... * doc/extend.texi (Alignment): Say that the ABI controls the __alignof__ for non-strict-alignment targets rather than being a recommendation. From-SVN: r133271 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb89350e4d48..246acc9d1f92 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-03-16 Hans-Peter Nilsson + + * 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 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 26a8e70b7fa7..d114adce2fd8 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