musl/include
Rich Felker 919ad8d5fb explicitly use signed keyword to define intNN_t and derivative types
standing alone, both the signed and int keywords identify the same
type, a (signed) int. however the C language has an exception where,
when the lone keyword int is used to declare a bitfield, it's
implementation-defined whether the bitfield is signed or unsigned. C11
footnote 125 extends this implementation-definedness to typedefs, and
DR#315 extends it to other integer types (for which support with
bitfields is implementation-defined).

while reasonable ABIs (all the ones we support) define bitfields as
signed by default, GCC and compatible compilers offer an option
-funsigned-bitfields to change the default. while any signed types
defined without explicit use of the signed keyword are affected, the
stdint.h types, especially intNN_t, have a natural use in bitfields.
ensure that bitfields defined with these types always have the correct
signedness regardless of compiler & flags used.

see also GCC PR 83294.
2018-03-12 20:04:59 -04:00
..
2013-07-03 18:07:50 +02:00
2018-02-22 19:34:58 -05:00
2012-05-06 16:35:32 -04:00
2016-08-30 16:39:54 -04:00
2011-02-12 00:22:29 -05:00
2018-02-22 18:51:16 -05:00
2012-09-08 18:16:33 -04:00
2011-02-12 00:22:29 -05:00
2014-06-21 19:24:15 -04:00
2011-02-14 21:59:38 -05:00
2012-05-06 16:35:32 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2014-07-31 02:38:23 -04:00
2011-04-05 15:40:36 -04:00
2018-03-10 18:19:40 -05:00
2011-02-12 00:22:29 -05:00
2018-03-10 18:19:40 -05:00
2016-10-20 16:55:32 -04:00
2013-01-04 20:36:34 +01:00