RFC: Removing OLD_EXCEPTIONS powerpc multilib variants

Ralf Corsepius ralf.corsepius at rtems.org
Thu Feb 10 04:19:35 UTC 2005


On Wed, 2005-02-09 at 19:08 -0800, Till Straumann wrote:
> Forgive me - I just don't understand - why you have to build
> toolchain variants if all you want are different libcpu versions?
> 
> Why does the toolchain have to be built for the two exception models?
> Just so the compiler picks different libcpu versions based on a
> -DOLD_EXCEPTIONS
No.

>  or am I missing something here?
It picks up a different librtemscpu.a based on -D_OLD_EXCEPTIONS

Multilib'ed RTEMS means using different librtemscpu.a's.
This only works if GCC knows about which versions are required by RTEMS,
therefore we have to build GCC+newlib with this knowledge about RTEMS
build-in.

I.e. the libc.a (newlib) and libgcc.a, libstdc++.a etc. (GCC) are the
same, but librtemscpu.a (cpukit) are not.

Further, librtemscpu.a also contains parts traditional libc.a's would
contain (networking, threading), i.e. librtemscpu.a is stricter tied to
libc than you might think.


Ralf





More information about the users mailing list