[arm] Update t-rtems for new option framework

Programming / Compilers / GCC - rearnsha [138bc75d-0d04-0410-961f-82ee72b054a4] - 16 June 2017 17:05 EDT

[This patch has only been fairly lightly tested (I've built a compiler with all the relevant multilibs and smoke-tested a few combinations to check that the tools still produce a sensible object file).]

This patch updates the RTEMS build to use the new option framework. It tries as far as possible to keep the existing supported options, but there are two necessary changes and one cleanup. I've also restructed the file slightly to make it slightly easier (IMO) to understand.

Necessary changes:

1: ARMv4t does not support a hard-float ABI, the earliest supported architecture with floating-point support is ARMv5te, so I've rebased the original fpu/hard libraries to that revision of the architecture.

2: Similarly, the earliest version of the -m profile to support hardware floating-point is armv7e-m (not armv7-m), so the base architecture for m-profile with FP has been correspondingly updated.


1: For greater consistency I've changed the-mcpu=cortex-m7/-mfpu=fpv5-d16/-mhard-float to-march=armv7e-m+fp.dp/-mhard-float. The built-in -mcpu rewrite rules take care of mapping the existing option sets onto the architecture string to ensure compatibility.

Since the existing rule set does not contain any MULTILIB_REUSE rules, I have not added any here this time around, but it would be worth the maintainers of this file considering whether adding some rules would make their toolchain more friendly to users.

Finally, I've added lines to reset all the multilib variables at the head of the file. I found during testing that some definitions from t-arm-elf were leaking through and causing unexpected behviour.

- config/arm/t-rtems: Rewrite for new option framework.

91d316e [arm] Update t-rtems for new option framework
gcc/ChangeLog | 4 ++++
gcc/config/arm/t-rtems | 49 ++++++++++++++++++++++++++++++++-----------------
2 files changed, 36 insertions(+), 17 deletions(-)

Upstream: gcc.gnu.org

  • Share