This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __alignof__(void)



> 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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]