[BUG] profile: compilation fails ("cannot honor width suffix", 2nd edition)
- Dominant language
- C
- Stars
- 4k
- Forks
- 1.7k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 237
Description
### Description / Steps to reproduce the issue
**Please note**: this issue is identical to #16655 (same title, two weeks ago)
Thankfully, @Gary-Hobson worked on that issue in PR #16675.
Now I noticed, that the PR did not solve the issue (same compiler error is here).
But an *intermediate* state of the PR indeed solved the issue (see a84d685be4de3f84fc866660547c516e199e264f). This commit works fine for me (I just tested it now).
But the PR included only commit 156ef05205d708a1b4b589a21af361cbcb7769f3.
I could not decipher the PR's discussion fully. Thus, I cannot tell, why the working commit above did not make it into the final state of the PR. Maybe just an accidental omission?
The working commit (a84d685be4de3f84fc866660547c516e199e264f) can be cherry-picked into the current `master` without problems. It compiles cleanly for `rp2040`.
How to reproduce:
1. enable profiling:
``` CONFIG_FRAME_POINTER=y
CONFIG_PROFILE_ALL=y
CONFIG_PROFILE_MINI=y
```
1. see compilation failing:
```
CC: dirent/lib_alphasort.c mcount.S: Assembler messages:
mcount.S:33: Error: cannot honor width suffix -- `bic r1,lr,#1'
mcount.S:35: Error: cannot honor width suffix -- `bic r0,r0,#1'
mcount.S:37: Error: cannot honor width suffix -- `pop {r0,r1,r2,r3,ip,lr}'
make[3]: *** [Makefile:151: bin/mcount.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [tools/LibTargets.mk:196: libs/libc/libc.a] Error 2
### On which OS does this issue occur?
[OS: Linux]
### What is the version of your OS?
Debian Trixie
### NuttX Version
master
### Issue Architecture
[Arch: arm]
### Issue Area
[Area: Debugging]
### Host information
[nuttx-host-info.txt](https://github.com/user-attachments/files/21304702/nuttx-host-info.txt)
### Verification
- [x] I have verified before submitting the report.
Contributor guide
Assessment
This issue has not been assessed yet.