This is the mail archive of the gcc@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: 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


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