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
On Thu, Jul 17, 2003 at 07:58:21AM +1000, Danny Smith wrote:
> --- Christopher Faylor <cgf@redhat.com> wrote: > 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.
>
>Umm, do I not need approval from someone with blanket write permission for the
>(mechanical) change to hwint.h.
Sorry. Yes, you do.
cgf