[PATCH RSB v2 2/2] rtems-gcc-head-newlib-head.cfg: Add newlib patch

Ryan Long ryan.long at oarcorp.com
Fri Sep 3 17:17:11 UTC 2021


Adds patch to add the -DPREFER_SIZE_OVER_SPEED flag to AArch64 tools
builds with newlib. This forces the generation of AArch64 assembly from
C sources instead of using the hand-optimized code in newlib since it
does not support ILP32. This can be removed when it is fixed upstream.

Updates #4510
---
 rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rtems/config/tools/rtems-gcc-head-newlib-head.cfg b/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
index 4939ca5..c17895b 100644
--- a/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
+++ b/rtems/config/tools/rtems-gcc-head-newlib-head.cfg
@@ -12,6 +12,9 @@
 %define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}
 %source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version}
 %hash sha512 newlib-%{newlib_version}.tar.gz 9ded46b3077508ef05bbb4bf424777a0baa5aab9c7c0c902fb5529bb73b5b5034c35282e2dbf270cbcd44d84940a20ee270e329db4e4b501046978c18f78a11c
+%
+%patch add newlib -p1 https://devel.rtems.org/raw-attachment/ticket/4510/0001-configure.host-Add-DPREFER_SIZE_OVER_SPEED.patch
+%hash sha512 0001-configure.host-Add-DPREFER_SIZE_OVER_SPEED.patch rRg7bJoWjR11FQXmSHPxF8EfsFmBnTQcXXFWGZhbKFwyTvJ8EXfGMACI33u+OuvX+gNANMOJLyv27FcyTJseKg==
 
 %define with_threads 1
 %define with_plugin 0
-- 
1.8.3.1



More information about the devel mailing list