-
Bug
-
Resolution: Unresolved
-
Low
-
Code Generation Tools
-
CODEGEN-11626
-
-
ARMCLANG_3.2.2.LTS
-
default
The documentation of -Og states that several optimizations are not performed. Examples include no function inlining, and no value propagation. The idea is to optimize, but not to the point of making debug difficult.
The attached source code has a static function and a static structure. Build it.
$ tiarmclang @options.txt -S file.c
Inspect the resulting assembly in file.s. The call to the static function is inlined. The static structure is eliminated.
Please see the related forum thread for further context.