https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68854
--- Comment #2 from vasyl.vavrychuk at globallogic dot com --- --ansi is passed by build system of a big 3rd party project that I compile. It is possible to change it to remove --ansi but in my opinion there is gcc bug too. Gcc should either: * ignore ansi in the case of assembly source * report that ansi is invalid option