[PATCH] RTEMS: Add LEON3/SPARC multilibs
Ralf Corsépius
corsepiu@gcc.gnu.org
Wed Sep 18 18:30:00 GMT 2013
On 09/17/2013 08:12 PM, Joel Sherrill wrote:
> Committed to the head.
>
> Is this too radical to also go on the 4.8 branch?
> We would need to discuss it on the RTEMS side but it
> only impacts us if the multilib is there for sparc-elf
> on 4.8.
Not quite. The problem is not GCC-4.8 vs. GCC-4.9, the problems are in
RTEMS.
Why? sparc-rtems*gccs < 4.8 doesn't support -mcpu=leon3 and thus will
abort when -mcpu=leon3 will be used.
I.e. you
a) CANNOT use -mcpu=leon3 in RTEMS's bsp_specs and in RTEMS cpukit,
until the toolchains are guaranteed to support it.
or
b) MUST backport -mcpu=leon3 to GCC-4.8
In other words, if you are sure leon3 works with GCC-4.8, you'd better
off backporting this to GCC-4.8. If there are known bugs in
GCC-4.8/leon3, you'd better of not using -mcpu=leon3 in RTEMS.
To my knowledge, GCC up to 4.8.1 doesn't support -mcpu=leon3 at all, but
I don't know about the status on current gcc-4_8-branch.
Ralf
More information about the Gcc-patches
mailing list