gcc: error: unrecognized command line option -no_autoinline


I am using scan-build in my build. But an option --no-autoinline is not getting recognised by gcc when scan-build is used along with make.

gcc: error: unrecognized command line option \u2018–no_autoinline\u2019

My error is similar to this issue: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-May/029945.html

If you have a solution for this can you please share with me. Thanks in advance.


I got this solved by using the --use-cc to point to my armcc compiler. ut now another issue:

I have a build system that actually generated make file and then uses make to compile code. I have inserted scan-build into the generated make file so the make actually is invoked as :

llvm/tools/clang/tools/scan-build/scan-build -o $SDE_BIN_DIR --use-cc=$ARMCCWRAP --use-c++=$ARMCCWRAP --use-analyzer $SDE_BIN_DIR/llvm/Debug+Asserts/bin/clang

ARMCCWRAP point to the armcc compiler binary. I get an issue where many of the header files are not detected during the compilation. I want to use the -B option of ccc-analyzer or the -I option of clang to pass this info to scan-build but unsuccessful. Can you help me how with the syntax for these options

Many thanks.

Best regards,