This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix target default on biarch Linux/Sparc
- From: David Miller <davem at davemloft dot net>
- To: ebotcazou at adacore dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 14 Oct 2011 15:36:28 -0400 (EDT)
- Subject: Re: [PATCH] Fix target default on biarch Linux/Sparc
- References: <20110905.182632.902579345910225033.davem@davemloft.net> <201110142027.03838.ebotcazou@adacore.com>
From: Eric Botcazou <ebotcazou@adacore.com>
Date: Fri, 14 Oct 2011 20:27:03 +0200
>> If you configure a biarch Linux/Sparc compiler defaulting to
>> 32-bit, but give --with-cpu= for a v9 cpu it erroneously
>> turns on 64-bit in TARGET_DEFAULT.
>
> PR target/50354 reports the breakage of the opposite case after the change:
> configuring for sparc64-linux --with-cpu=v8 used to build a 32-bit compiler,
> now the build aborts because of an architecture mismatch.
Thanks for looking into this Eric.
If one wants a 32-bit default compiler, they should build for the
sparc-linux target. And this is absolutely trivial to make happen
in the environments where this is supposedly a problem.
We could allow it for compatability, but I'd prefer not to.