[PATCH]: Cast in c-pretty-print.c causes warning

Richard Guenther richard.guenther@gmail.com
Thu Sep 3 10:52:00 GMT 2009


On Thu, Sep 3, 2009 at 12:17 AM, Richard Henderson<rth@redhat.com> wrote:
> On 09/02/2009 02:21 PM, Kai Tietz wrote:
>>
>> Ok, I can file a patch to add gstdint.h to system.h, or is it better
>> to use here just a config.h check for existing stdint.h and otherwise
>> fall back to long type for intptr_t?
>
> It's best to have a configure check.
> See the standard autoconf macro AC_TYPE_UINTPTR_T.

The LTO branch also makes use of uintptr_t and adds

AC_CHECK_TYPE(intptr_t, long)

which is obviously wrong for LLP64 hosts ;)  But see config/stdint.m4
and config/stdint_h.m4.

Richard.

>
> r~
>



More information about the Gcc-patches mailing list