6.6.12.3 -x

You can specify the input language explicitly with the -x option.

-x language

Specify explicitly the language for the following input files (rather than letting the compiler choose a default based on the file name suffix). This option applies to all following input files until the next -x option.

The following values are supported by the compiler: c, c-header, cpp-output, assembler, assembler-with-cpp.

-x none

Turn off any specification of a language, so that subsequent files are handled according to their file name suffixes. This is the default behavior but is needed if another -x option has been used.

For example:

-x assembler foo.asm bar.asm -x none main.c mabonga.s

Without the -x none, the compiler will assume all the input files are for the assembler.