Hello,

The attached patch is something we have been using for a while
to facilitate the production of toolchains targeting the e500
series of powerpc's.

The general idea is to have e500 treated essentially as powerpc
except selecting a default with_cpu and using a specific "spe" os
extension when appropriate for proper ABI selection.

We find this useful to have triplets like e500v2-wrs-vxworks or
e500v2-wrs-linux work out of the box, and thought others might
find it useful as well.

OK to commit ?

Thanks in advance for your feedback,

Olivier


2014-09-16  Olivier Hainque  <hain...@adacore.com>

        toplevel/
        * config.sub: Accept e500v[12] cpu names. Canonicalize to
        powerpc and add a "spe" suffix to the os name when required
        to select the proper ABI and not already there.

        gcc/
        * config.gcc: Select a default with_cpu=8540 for e500v1 and
        a default with_cpu=8548 for e500v2.

Attachment: e500v2-config.diff
Description: Binary data

Reply via email to