summaryrefslogtreecommitdiff
path: root/gcc/extend.texi
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-14 08:24:21 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-14 08:24:21 +0000
commitc0272e26b09e3c65c3bf548d99cb53e06c747589 (patch)
tree436c07ae50d58c69b35870f134bd22257f49ce84 /gcc/extend.texi
parentc7dfa70cdfc8a92c61245a42f25328a193037097 (diff)
downloadgcc-c0272e26b09e3c65c3bf548d99cb53e06c747589.tar.gz
* c-typeck.c (c_alignof): Error on incomplete types.
* extend.texi (Alignment): Document this. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32522 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/extend.texi')
-rw-r--r--gcc/extend.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi
index fa13154d7fe..475241aadde 100644
--- a/gcc/extend.texi
+++ b/gcc/extend.texi
@@ -1879,6 +1879,8 @@ the value of @code{__alignof__ (foo1.y)} is probably 2 or 4, the same as
@code{__alignof__ (int)}, even though the data type of @code{foo1.y}
does not itself demand any alignment.@refill
+It is an error to ask for the alignment of an incomplete type.
+
A related feature which lets you specify the alignment of an object is
@code{__attribute__ ((aligned (@var{alignment})))}; see the following
section.