Hello,

We (AdaCore) appreciate having triplets like e500v2-wrs-vxworks or
e500v2-wrs-linux work out of the box.

The attached patch is something we have been using for a while for this purpose
and we thought others might find it useful as well.

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

On the gcc front, we leverage this further by selecting a default with_cpu,
typically 8540 for e500v1 or 8548 for e500v2 (original patch submission at
https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01300.html)

The patch passes the existing tests + the few added cases.

OK to commit ?

Thanks in advance for your feedback,

With Kind Regards,

Olivier

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

        * 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.
        * testsuite/config-sub.data: Add tests for e500v[12]-elf,
        e500v2-wrs-vxworks, e500v2-vxworksae and e500v2-wrs-linux.

Attachment: e500v2-config-sub.diff
Description: Binary data

_______________________________________________
config-patches mailing list
config-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/config-patches

Reply via email to