[LLVMdev] Language lawyer question
Dale Johannesen
dalej at apple.com
Wed Mar 12 10:01:46 PDT 2008
On Mar 12, 2008, at 8:43 AM, Daniel Berlin wrote:
> On Tue, Mar 11, 2008 at 11:42 PM, Dale Johannesen <dalej at apple.com>
> wrote:
> Padding is allowed to be skipped in structures in this case.
> See 6.2.6.1.
> Even further, all padding is allowed to take any value no matter how
> you try to set it (IE it always allowed to have an undefined value,
> even if you memset it).
>
> We happen to allow memset to clear padding bits, but we don't have
> to, AFAIK.
Yes, 6.2.6.1 is clear in C99, thanks. (C90 does not seem to have a
corresponding section, though.)
This is derived from gcc.dg/vmx/varargs-4.c from the gcc testsuite, if
anybody feels like fixing it.
More information about the llvm-dev
mailing list