[cfe-users] clang 11rc1 - target aarch64 -mharden-sls warning

Jonas Toth via cfe-users cfe-users at lists.llvm.org
Mon Aug 3 03:05:53 PDT 2020


Hi Milan,

just to be sure:

Are you doing a multi-stage build? On which stage is the warning emitted?
The architecture you are  building on itself is ARM or are you doing
cross compilation?

The argument itself is a compatibility-option for GCC, which might be
added after clang-11 was branched?
(https://github.com/llvm/llvm-project/commit/0ee176edc8b4a6f20527e907bfd026b07a27e7ef
seems to have it included though!)

The generic warning message is emitted when that specified option is not
utilized because it does not apply in this instance.
For example, I have seen this when compiling C code with C++-specific
arguments.

So your specific setup would be relevant to know.

Best Regards
Jonas

Am 01.08.20 um 13:22 schrieb Milan Buška via cfe-users:
> Good day.
> I am testing a compilation of clang ver. 11rc1 using the
> clang-11.0.0rc1 compiler.
>
> CFLAGS and CXXFLAGS I have set      "-march=armv8-a -mharden-sls=all -pipe"
>
> When compiling, I get a message:
> clang-11: warning: argument unused during compilation: -mharden-sls=all
>
> Is this warning caused by my incorrect settings or there is an error in the code
>
> Best regards
>
> Milan


More information about the cfe-users mailing list