llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Add support to -Wa,-W in clang

Open jcai19 opened this issue 7 years ago • 3 comments

Bugzilla Link 43651
Resolution FIXED
Resolved on Oct 21, 2019 11:28
Version trunk
OS Linux
CC @MaskRay,@zygoloid

Extended Description

Currently clang does not support -Wa,-W.

$ cat test.c

int main () {return 0;} $ clang -Wa,-W test.c clang: error: unsupported argument '-W' to option 'Wa,'

From man page of GNU as:

   -W
   --no-warn
       Suppress warning messages.

We need this option for gcc compability.

jcai19 avatar Oct 11 '19 18:10 jcai19

https://reviews.llvm.org/D68884

jcai19 avatar Oct 11 '19 20:10 jcai19

def massembler_no_warn : Flag<["-"], "massembler-no-warn">, 205: HelpText<"Make assembler not emit warnings">; Seems we could simply add -W as an alis for this option in llvm.

jcai19 avatar Oct 11 '19 18:10 jcai19

assigned to @jcai19

jcai19 avatar Oct 11 '19 18:10 jcai19