This is the mail archive of the gcc-patches@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: [PATCH] Fix target default on biarch Linux/Sparc


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.


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