diff options
author | yliu <yu.liu@ingenic.com> | 2025-07-30 10:54:43 +0800 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2025-08-10 19:27:56 +0200 |
commit | 6ba3f7de483c55676bf3984ea989db5c813e09fa (patch) | |
tree | a4b1cfc03f0bf65c2ae8312626602d484a6271b0 /libc/stdlib/malloc/calloc.c | |
parent | d452d5523acb0e89d2e36fa700cdd2da87186fb2 (diff) |
mips32: Preventing FORCE_FRAME_POINTER from being optimized away
In functions that modify sp, debug and unwind information should
be located by fp instead of sp, and the conversion is completed
through FORCE_FRAME_POINTER. With gcc -Os, FORCE_FRAME_POINTER is
optimized away, and the modified sp is still used, causing a
segmentation fault in the recvfrom().
Adding a meaningless assembly instruction to use the return value
of FORCE_FRAME_POINTER to prevent it from being deleted.
Diffstat (limited to 'libc/stdlib/malloc/calloc.c')
0 files changed, 0 insertions, 0 deletions