This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 08/09/14 10:12, Joel Sherrill wrote:
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 think the GCC support is incomplete since it offers builtin defines for the limits and the constants (e.g. #define __INT32_C(c) c ## L).
-- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschÃftliche Mitteilung im Sinne des EHUG.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |