[LLVMbugs] [Bug 22538] <ctype.h> doesn't handle -fpack-struct

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 11 10:11:09 PST 2015


Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |INVALID

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
What do you think we should change in Clang to fix this? We don't ship a
ctype.h header. I don't think this is a Clang bug.

-fpack-struct as designed is inherently hostile, and requires that headers
defend themselves from its packing rules with extra pragmas that most people
don't bother to use.

You can ask FreeBSD to add packing pragmas to undo the damage done by
-fpack-struct, or you could drop -fpack-struct and apply packing pragmas where
you want them in your own source code.

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/20150211/03a08e5f/attachment.html>

More information about the llvm-bugs mailing list