You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "MariuszSkamra (via GitHub)" <gi...@apache.org> on 2025/08/20 08:12:19 UTC
[PR] baselibc: Fix memset compilation error on gcc15 [mynewt-core]
MariuszSkamra opened a new pull request, #3492:
URL: https://github.com/apache/mynewt-core/pull/3492
This fixes the memset compilation error seen on gcc 15.
/tmp/cccS6DLj.s:50: Error: cannot honor width suffix -- `adds r3,ip,r2'
/tmp/cccS6DLj.s:57: Error: cannot honor width suffix -- `strb r1,[ip,r2]'
/tmp/cccS6DLj.s:61: Error: cannot honor width suffix -- `str r1,[ip,r2]'
/tmp/cccS6DLj.s:66: Error: cannot honor width suffix -- `strb r1,[ip,r2]'
caused by complier placing parameters (dst in this case) into high registers. Since the memset implementation uses instructions that update the CPSR, the use of high registers will cause errors as above.
This fixes this issue by forcing compiler to use low registers. 'c' aka 'val' operand constraint as not changed by function is changed to "r" meaning it is read-only operand.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] baselibc: Fix memset compilation error on gcc15 [mynewt-core]
Posted by "andrzej-kaczmarek (via GitHub)" <gi...@apache.org>.
andrzej-kaczmarek merged PR #3492:
URL: https://github.com/apache/mynewt-core/pull/3492
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@mynewt.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org