This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __alignof__(void)
- To: Nathan Sidwell <nathan at acm dot org>
- Subject: Re: __alignof__(void)
- From: John Carr <jfc at mit dot edu>
- Date: Thu, 10 Sep 1998 08:35:47 EDT
- Cc: egcs at cygnus dot com
> What is a desirable value for __alignof__(void) to return? Documentation
> does not comment. Currently it returns 1, and the gcc's source code
> treats it the same as an ERROR_MARK node.
It should return an error, but for compatibility with the gcc bug
permitting (void *) to participate in arithmetic as if it were (char *)
the value 1 would also be acceptable. Nothing else makes sense.