manでさえそれぐらいのことは書いてある。

  -x language
      Specify explicitly the language for the following
      input files (rather than choosing a default based
      on the file name suffix) . This option applies to
      all following input files until the next `-x' op-
      tion. Possible values of language are `c', `objec-
      tive-c', `c-header', `c++', `cpp-output', `assem-
      bler', and `assembler-with-cpp'.