https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110049
Bug ID: 110049
Summary: Is there a conflict between `-Os` and `always_inline`?
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: qin.qiwei at foxmail dot com
Target Milestone: ---
What is it like when we specify `__attribute__((always_inline))` for a function
and by the same time specify `-Os` during compiling?
Will the function expanded? If so, when?
---
By the way, is there some clerical error in
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html?
i.e. Under `-Os`, it says
"It also enables -finline-functions, causes the compiler to tune for code size
rather than execution speed, and performs further optimizations designed to
reduce code size."
Does it means *disables* rather than *enables* actually?