[PATCH] Change __INT*_TYPE__ to be compatible with GCC

Joerg Sonnenberger joerg at britannica.bec.de
Wed Jul 16 06:47:14 PDT 2014


Hi all,
at the moment, users of __INT8_TYPE__ are expected to prefix it with an
explicit signed. We recently got support for __UINTx_TYPE__, so the
primary reason for that odity disappeared. I'd like to make our macros
compatible with the simpler GCC definition, so that __INT8_TYPE__ is
signed char and the others can be defined without signed. This
potentially breaks out of tree users of __INTx_TYPE__, so I would like
to get a consensus here first.

stdint.h and co should be cleaned up separately to use the builtin macros
more aggressively, but that's a somewhat unrelated issue.

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signed_types.diff
Type: text/x-diff
Size: 53019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140716/aeabc859/attachment.diff>


More information about the cfe-commits mailing list