This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: COUNTER-[PATCH] 64 bit formatting directives on MingW32
- From: Christopher Faylor <cgf at redhat dot com>
- To: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- Cc: Earl Chew <earl_chew at agilent dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 15 Jul 2003 16:29:28 -0400
- Subject: Re: COUNTER-[PATCH] 64 bit formatting directives on MingW32
- References: <3F1348C9.3080709@agilent.com> <20030715081239.39303.qmail@web21406.mail.yahoo.com>
On Tue, Jul 15, 2003 at 06:12:39PM +1000, Danny Smith wrote:
> --- Earl Chew <earl_chew@agilent.com> wrote: > Danny Smith wrote:
>> I encountered my original problem with building powerpc-wrs-vxworks
>> hosted on MingW32.
>>
>> When running the resulting cross-compiler, the backend wanted
>> to use HOST_WIDE_INT_* to print a 64 bit quantity. I don't have
>> the exact details at hand, but the comments on hwint.h suggest:
>>
>> > /* Set HOST_WIDE_INT. This should be the widest efficient host
>> > integer type. It can be 32 or 64 bits, except that if we are
>> > targeting a machine with 64-bit size_t then it has to be 64 bits.
>>
>
>
>> So it would appear that it might be possible that HOST_WIDE_INT_*
>> needs to format a 64 bit quantity.
>>
>> If this is indeed true, I think your patch needs some additions
>> to accommodate this case.
>>
>> Earl
>>
>
>Hi Earl
>
>Second version: Put the "I64" define in the host (not target) config file.
>
>This works on native bootstrap. Can you try with your cross-build to
>target that has 64-bit longs.
Assuming this passes Earle's tests, please feel free to check in.
cgf