This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Adding Leon processor to the SPARC list of processors
- From: Konrad Eisele <konrad at gaisler dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: Joern Rennecke <amylaar at spamcop dot net>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, iant at google dot com, LuÃs VitÃrio Cargnini <lvcargnini at gmail dot com>, Daniel Hellstrom <daniel at gaisler dot com>, Jiri Gaisler <jiri at gaisler dot com>, Jose Ruiz <ruiz at adacore dot com>
- Date: Mon, 22 Nov 2010 10:59:41 +0100
- Subject: Re: Adding Leon processor to the SPARC list of processors
- References: <4CE515CB.7080706@gaisler.com> <201011191753.29923.ebotcazou@adacore.com> <4CEA2ED6.903@gaisler.com> <201011221007.39417.ebotcazou@adacore.com>
Eric Botcazou wrote:
>> I would suggest a simple solution:
>> I can have 5 --with-cpu configure possibilies:
>>
>> 1. single-lib explicit selection:
>> - --with-cpu=sfsparcleon : v7/soft |
>> - --with-cpu=sfsparcleonv8 : v8/soft |
>> - --with-cpu=hfsparcleon : v7/hard |
>> - --with-cpu=hfsparcleonv8 : v8/hard |
>
> --with-cpu isn't really appropriate for this, we already have --with-cpu=v7/v8
> and --with-float=soft/hard and --disable-multilib.
Still I need to select sparc_cpu and leon.md too. I could then add -mtune=leon at
compiletime to switch sparc_cpu, but the I have to give -mtune=leon every time.
I would like to be able to make it the default. With just
[ --with-cpu=v7/v8 | --with-float=soft/hard | --disable-multilib ] to configure
you cant.
So then my suggestion would be to use tripple
[ --with-cpu=sparcleonv7/sparcleonv8 | --with-float=soft/hard | --disable-multilib ]
to configure. And add the 2 cpu types sparcleonv7,sparcleonv8 that would replace
v7/v8.
Does this sound good?
-- Greetings Konrad