https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84230
Bug ID: 84230 Summary: LTO: -Wa argument not passed through to the assembler Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Compiling the program below $ gcc a-warn.c -Wa,--no-warn __asm (".warning \"Some Warning\""); int main() { } assembles without a diagnostic from the assembler because it is supplied with the --no-warn command-line option. However: $ gcc a-warn.c -Wa,--no-warn -flto /tmp/cceJ4GNN.s: Assembler messages: /tmp/cceJ4GNN.s:4: Warning: Some Warning hence tha --no-warn option (and maybe any other option) is not passed through to all assembler stages. Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/install/gcc-8-host/bin/../libexec/gcc/x86_64-linux-gnu/8.0.1/lto-wrapper Target: x86_64-linux-gnu Configured with: ../../gcc.gnu.org/bootstrap-trunk/configure --prefix=/install/gcc-8-host --enable-languages=c,c++ --enable-checking=release --disable-bootstrap --build=x86_64-linux-gnu Thread model: posix gcc version 8.0.1 20180117 (experimental) [trunk revision 256792] (GCC)