[LLVMbugs] [Bug 19881] __attribute__((aligned(4))) must be placed in a typedef for it to work.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 29 13:01:52 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19881
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #4)
> Is the syntax for cv qualifiers and __attribute__ different with this
> respect?
Yes. GCC's attribute syntax is weird and underdocumented, but it doesn't behave
like cv-qualifiers in this context.
> If so, is the difference by accident and incidental, or is there
> some underlying reason?
You should ask the GCC folks this question; we didn't invent the syntax and
semantics here and weren't involved in its design. We just try to be compatible
with how GCC behaves.
Here's what the [GCC
documentation](https://gcc.gnu.org/onlinedocs/gcc-4.9.0/gcc/Attribute-Syntax.html)
has to say on this:
"Any list of specifiers and qualifiers at the start of a declaration may
contain attribute specifiers[...]. All attribute specifiers in this place
relate to the declaration as a whole."
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140529/b864f339/attachment.html>
More information about the llvm-bugs
mailing list