This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC build failed with your patch on 2001-01-09T11:35:00Z.
- To: rth at redhat dot com
- Subject: Re: GCC build failed with your patch on 2001-01-09T11:35:00Z.
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Tue, 9 Jan 2001 14:48:36 -0800
- CC: dje at watson dot ibm dot com, mark at codesourcery dot com, aoliva at redhat dot com, gcc at gcc dot gnu dot org, gcc-regression at gcc dot gnu dot org, grahams at redhat dot com, jsm28 at cam dot ac dot uk, mhayes at redhat dot com, neil at daikokuya dot demon dot co dot uk, osk at hem dot passagen dot se
- References: <mark@codesourcery.com> <200101092050.PAA38976@mal-ach.watson.ibm.com> <20010109135807.A4380@redhat.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> Date: Tue, 9 Jan 2001 13:58:07 -0800
> From: Richard Henderson <rth@redhat.com>
> The correctness issue is that with a 32-bit H_W_I we cannot do 128-bit
> arithmetic in the compiler. Since bitsizetype is TImode for a 64-bit
> target, cross-compiling from a 32-bit H_W_I does not work. This has
> been broken ever since bitsizetype was introduced.
I think this code makes it work (from set_sizetype):
int precision = MIN (oprecision + BITS_PER_UNIT_LOG + 1,
2 * HOST_BITS_PER_WIDE_INT);
so if HOST_BITS_PER_WIDE_INT is 32, the precision of bitsizetype is
limited to 64. This is perfectly OK for AIX-64 as the machine's
memory map can't deal with a 2^61-byte contiguous region anyway.
--
- Geoffrey Keating <geoffk@geoffk.org>