[Bug target/68456] UINT32_TYPE is long unsigned for 32bit targets

dmitry.polukhin at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Nov 20 15:10:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68456

Dmitry Polukhin <dmitry.polukhin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.polukhin at gmail dot com

--- Comment #4 from Dmitry Polukhin <dmitry.polukhin at gmail dot com> ---
What is the advantage of using 'long' instead of 'int' for uint32_t on a
platform where both types can be used (i.e. actually they have the same size)?

GLibC uses 'int', it better matches user expectations and, if using 'long'
doesn't make other advantages, it makes compatibility issues without giving
benefits. So just curious in rationale behind using 'long' instead of 'int'.


More information about the Gcc-bugs mailing list