inttypes.h bug leads to inconsistent warnings cross platform
Joel Sherrill
joel.sherrill@oarcorp.com
Mon Sep 8 08:12:00 GMT 2014
On September 8, 2014 1:13:59 AM CDT, Sebastian Huber <sebastian.huber@embedded-brains.de> wrote:
>On 05/09/14 16:37, Joel Sherrill wrote:
>> Any thoughts on how to detect when it should use
>> "ul" for long uinptr_t instead of "u" for targets with
>> int uintptr_t?
>
>I think there are only two options, loop
>
>1. add a cascade of #ifdef arch for all special cases, or
>
>2. add builtin defines to GCC.
This is the conclusion I came to.
I am not sure which is less painful. My gut says it would have to be added to a lot more places in gcc than newlib. It is easy to solve in newlib. Although it seems more correct to add it to GCC.
I suppose I should restart this thread over at GCC to get more opinions.
I am traveling this week. I reverted the warning fix patch locally if you want too revert it in the RTEMS tree.
--joel
More information about the Newlib
mailing list