[cfe-commits] r63977 - in /cfe/trunk/lib/Headers: limits.h stdint.h

Eli Friedman eli.friedman at gmail.com
Fri Feb 6 17:06:07 PST 2009


On Fri, Feb 6, 2009 at 2:59 PM, Chris Lattner <sabre at nondot.org> wrote:
> add a stdint.h header.

Do we support the search path magic to make this work correctly with
the system stdint.h?

> + * Since we only support pow-2 targets, these map directly to exact width types.

Does gcc always define these the same way?  I suppose I can't think of
any target where it makes a significant difference, but we probably
want to match if possible.

> +/* 7.18.4.2 Macros for greatest-width integer constants. */
> +#define INTMAX_C(v)  (v ## LL)
> +#define UINTMAX_C(v) (v ## ULL)

Not sure if it matters, but is this correct for targets where intmax_t
!= long long?

-Eli



More information about the cfe-commits mailing list