This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ppc-linux and s390-linux compilers requiring 64-bit HWI?
- From: Ulrich Weigand <uweigand at de dot ibm dot com>
- To: jakub at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 28 Nov 2005 04:38:35 +0100 (CET)
- Subject: Re: ppc-linux and s390-linux compilers requiring 64-bit HWI?
Jakub Jelinek wrote:
> What's the reason why ppc-linux and s390-linux targetted GCC
> requires 64-bit HWI these days?
> If it is a native compiler, this means using long long in a huge part
> of the compiler and therefore slower compile times and bigger memory
> consumption.
> ppc-linux configured compiler (nor s390-linux) isn't multilibbed and
> ppc-linux only supports -m32 (s390-linux one apparently supports
> both -m31 and -m64 on the GCC side, but without multilibs it isn't very
> helpful).
There are two reasons why we require 64-bit HWI on s390: we want to
support -m64 (multilibs can be easily added), and 64-bit HWI simplifies
constant handling significantly. There are multiple places in the
s390 backend that rely on the size of HWI being > 32-bit, and would
likely cause overflow problems otherwise ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
Linux on zSeries Development
Ulrich.Weigand@de.ibm.com