Landing: b0f2495634d6
Project / Subsystem
gcc / x86
Date
2026-05-17
Author
H.J. Lu
Commit
b0f2495634d6c3e40a3a929d2d440eed866dda6d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- x86
- patch_id
- —
- commit_hash
- b0f2495634d6c3e40a3a929d2d440eed866dda6d
- source_type
- github
- headline
- x86: Avoid inlining memmove at -Os.
- tldr
- The compiler will no longer inline memmove when optimizing for size on x86, which should reduce code size.
- author
- H.J. Lu
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • x86
- • optimization
- • code size
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-17T00:00:00.000Z
The compiler will now avoid inlining calls to memmove when the -Os flag is used, which optimizes for size. This change prevents the compiler from expanding memmove inline, keeping the code smaller. A new test case was added to verify the change.