<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 7, 2021, 12:18 PM Mr. Andrei Chichak <<a href="mailto:groups@chichak.ca">groups@chichak.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Joel,<br>
<br>
I don’t suppose this update will be in the places where the build system decides on the instruction set that newlib uses for Cortex-M4????<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No. This one is just to patch over a big in some of the aarch64 assembly language methods in newlib.</div><div dir="auto"><br></div><div dir="auto">I don't know that it does much as a flag except pick the C versions over assembly language ones.</div><div dir="auto"><br></div><div dir="auto">You'd be better off trying to change the target gcc flags to -Os. I think Ryan knows how to do that. Chris can answer that also </div><div dir="auto"><br></div><div dir="auto">It is a shame that AFAIK every multilib gets the same optimisation flags and macros some of the smaller parts would be better off defaulting to size over speed.</div><div dir="auto"><br></div><div dir="auto">--joel</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
A<br>
<br>
> On 2021-September-07, at 08:56, Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>> wrote:<br>
> <br>
> On Tue, Sep 7, 2021 at 8:04 AM Ryan Long <<a href="mailto:ryan.long@oarcorp.com" target="_blank" rel="noreferrer">ryan.long@oarcorp.com</a>> wrote:<br>
>> <br>
>> Alright, I’ll have that in the next version.<br>
> <br>
> I have a patch ready for this and already posted. Just ran out of disk space<br>
> testing it on all architectures on CentOS.<br>
> <br>
> When that build finishes, unless someone complains, I will push it.<br>
> <br>
> --joel<br>
> <br>
> <br>
>> <br>
>> <br>
>> From: Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>><br>
>> Sent: Saturday, September 4, 2021 3:31 PM<br>
>> To: Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>><br>
>> Cc: Ryan Long <<a href="mailto:ryan.long@oarcorp.com" target="_blank" rel="noreferrer">ryan.long@oarcorp.com</a>>; <a href="mailto:rtems-devel@rtems.org" target="_blank" rel="noreferrer">rtems-devel@rtems.org</a> <<a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a>><br>
>> Subject: Re: [PATCH RSB] rtems-gcc-10-newlib-head.cfg: Add newlib patch<br>
>> <br>
>> <br>
>> <br>
>> <br>
>> <br>
>> On Fri, Sep 3, 2021, 9:05 PM Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank" rel="noreferrer">chrisj@rtems.org</a>> wrote:<br>
>> <br>
>> Can we please join onto this an rtems-tools update so the recent fixes I pushed<br>
>> can be picked up?<br>
>> <br>
>> <br>
>> <br>
>> Ryan can you make that a second patch in this series?<br>
>> <br>
>> <br>
>> <br>
>> --joel<br>
>> <br>
>> <br>
>> Thanks<br>
>> Chris<br>
>> <br>
>> On 4/9/21 2:40 am, Joel Sherrill wrote:<br>
>>> You also should add the patch in the gcc-head-newlib-head<br>
>>> configuration as well for rtems7 tools.<br>
>>> <br>
>>> --joel<br>
>>> <br>
>>> On Fri, Sep 3, 2021 at 11:01 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank" rel="noreferrer">joel@rtems.org</a>> wrote:<br>
>>>> <br>
>>>> On Fri, Sep 3, 2021 at 9:27 AM Ryan Long <<a href="mailto:ryan.long@oarcorp.com" target="_blank" rel="noreferrer">ryan.long@oarcorp.com</a>> wrote:<br>
>>>>> <br>
>>>>> Adds patch to add the -DPREFER_SIZE_OVER_SPEED flag to aarch64 tool<br>
>>>>> builds with newlib.<br>
>>>> <br>
>>>> This doesn't explain why. This patch is needed to prevent the use of<br>
>>>> the assembly<br>
>>>> versions of some methods in newlib which are incorrect for ilp32. This<br>
>>>> can be removed<br>
>>>> when those methods are updated from ARM. Newlib is quite behind ARM for these<br>
>>>> methods and that will require work from an ARM Newlib person.<br>
>>>> <br>
>>>> Updates #4215,<br>
>>>> <br>
>>>> Improve the comment and ensure the ticket is clear that this is temporary for<br>
>>>> those reasons.<br>
>>>> <br>
>>>>> ---<br>
>>>>> rtems/config/tools/rtems-gcc-10-newlib-head.cfg | 3 +++<br>
>>>>> 1 file changed, 3 insertions(+)<br>
>>>>> <br>
>>>>> diff --git a/rtems/config/tools/rtems-gcc-10-newlib-head.cfg b/rtems/config/tools/rtems-gcc-10-newlib-head.cfg<br>
>>>>> index 69c4fb5..3594d1c 100644<br>
>>>>> --- a/rtems/config/tools/rtems-gcc-10-newlib-head.cfg<br>
>>>>> +++ b/rtems/config/tools/rtems-gcc-10-newlib-head.cfg<br>
>>>>> @@ -13,6 +13,9 @@<br>
>>>>> %patch add gcc -p1 <a href="https://devel.rtems.org/raw-attachment/ticket/4215/0001-nios2-Remove-custom-instruction-warnings.patch" rel="noreferrer noreferrer" target="_blank">https://devel.rtems.org/raw-attachment/ticket/4215/0001-nios2-Remove-custom-instruction-warnings.patch</a><br>
>>>>> %hash sha512 0001-nios2-Remove-custom-instruction-warnings.patch afd8a5e6bdcc5b75d5fbbf558bdf56ccac400521a6eec9d88cc95f6be67c481f2dbf8faa0f6ddc1e4ac7c56a84938714d80e46e9cf80ec4b8fcd739986449881<br>
>>>>> <br>
>>>>> +%patch add newlib -p1 <a href="https://devel.rtems.org/raw-attachment/ticket/4510/0001-configure.host-Add-DPREFER_SIZE_OVER_SPEED.patch" rel="noreferrer noreferrer" target="_blank">https://devel.rtems.org/raw-attachment/ticket/4510/0001-configure.host-Add-DPREFER_SIZE_OVER_SPEED.patch</a><br>
>>>>> +%hash sha512 0001-configure.host-Add-DPREFER_SIZE_OVER_SPEED.patch ad183b6c9a168d1d751505e64873f117c11fb059819d341c5d715619985b285c324ef27c1177c6300088df7bbe3aebd7fa034034c3892f2bf6ec57324c9b1e2a<br>
>>>>> +<br>
>>>> <br>
>>>> Looks like you forgot to use sha512-base64<br>
>>>> <br>
>>>> <br>
>>>>> %define newlib_version 4f81149<br>
>>>>> %define newlib_external 1<br>
>>>>> %define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version}<br>
>>>>> --<br>
>>>>> 1.8.3.1<br>
>>>>> <br>
>>>>> _______________________________________________<br>
>>>>> devel mailing list<br>
>>>>> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
>>>>> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
>>> _______________________________________________<br>
>>> devel mailing list<br>
>>> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
>>> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
>>> <br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank" rel="noreferrer">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
<br>
<br>
</blockquote></div></div></div>