This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

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


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~
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]