Re: [RFC]: Fix Ada boostrap failure on S/390 with -mzarch

2017-05-09 Thread H.J. Lu
On Tue, Apr 4, 2017 at 4:46 AM, Andreas Krebbel wrote: > On 04/03/2017 06:18 PM, Eric Botcazou wrote: >>> On S/390 UNITS_PER_WORD is: >>> 8 with -m64 >>> 4 with -m31 >>> 8 with -m31 -mzarch >>> >>> This has been chosen to support use of 64 bit registers also in 32 bit >>> code. Code compiled with

Re: [RFC]: Fix Ada boostrap failure on S/390 with -mzarch

2017-04-04 Thread Eric Botcazou
> This worked as well. I've committed the following patch: > > gcc/ada/ChangeLog: > > 2017-04-04 Andreas Krebbel > > * system-linux-s390.ads: Use Long_Integer'Size to define > Memory_Size. Thanks! -- Eric Botcazou

Re: [RFC]: Fix Ada boostrap failure on S/390 with -mzarch

2017-04-04 Thread Andreas Krebbel
On 04/03/2017 06:18 PM, Eric Botcazou wrote: >> On S/390 UNITS_PER_WORD is: >> 8 with -m64 >> 4 with -m31 >> 8 with -m31 -mzarch >> >> This has been chosen to support use of 64 bit registers also in 32 bit >> code. Code compiled with -m31 -mzarch is supposed to adhere to the 32 >> bit ABI. In ord

Re: [RFC]: Fix Ada boostrap failure on S/390 with -mzarch

2017-04-03 Thread Eric Botcazou
> On S/390 UNITS_PER_WORD is: > 8 with -m64 > 4 with -m31 > 8 with -m31 -mzarch > > This has been chosen to support use of 64 bit registers also in 32 bit > code. Code compiled with -m31 -mzarch is supposed to adhere to the 32 > bit ABI. In order to make that work it was required to prevent > UN

[RFC]: Fix Ada boostrap failure on S/390 with -mzarch

2017-04-03 Thread Andreas Krebbel
Hi Eric, I ran into a similiar problem as PR80117 on S/390 starting with your patch merging the system*.ads files for some biarch plattforms. Starting with that change GCC does not bootstrap on S/390 when configured with --with-mode=zarch. On S/390 UNITS_PER_WORD is: 8 with -m64 4 with -m31 8 wit