From 2a31c49ceb396963e298abb196fe3b099814cd3f Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sun, 16 Mar 2008 15:27:36 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/doc/extend.texi | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bb89350e4d4..246acc9d1f9 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 26a8e70b7fa..d114adce2fd 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 -- 2.30.2