Indicates that remarks for all optimizations that are performed are to be output.
optimization
Is a specific optimization for which remarks are to be output. See the Clang Compiler User’s Manual for more information about the optimization values you can specify.
armclang -c --target=arm-arm-none-eabi -march=armv8-a -O2 -Rpass=inline test.c
test.c:22:3: remark: copy inlined into main with (cost=-14980, threshold=337) [-Rpass=inline]
copy(t);
^
To display the stack protection remarks, specify:
armclang -c --target=arm-arm-none-eabi -march=armv8-a -fstack-protector -O0 -Rpass=stack-protector test.c
test.c:14:13: remark: Stack protection applied to function copy due to a stack allocated buffer or struct containing a
buffer [-Rpass=stack-protector]
static void copy(const char *p) {
^
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.