This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Adding Leon processor to the SPARC list of processors
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Konrad Eisele <konrad at gaisler 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:07:38 +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>
> 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.
> 2. generic multilib:
> - --with-cpu=leon : defaults to v7/hard
> use [-mcpu=v8 / -msoft-float ]
> at compile-time to select the hardware
> setting.
--with-cpu shouldn't change multilibs. Multilibs are a property of a target,
e.g. sparc-leon-elf or sparc-rtems, not that of a cpu setting.
--
Eric Botcazou