[mips] Correct the invocation of GAS in several cases.

Summary:
As a result of this patch, assembling an empty file with GCC and Clang (using
GAS as the assembler) now produces identical objects.

-mfp32/-mfpxx/-mfp64 now form a trinity of options. -mfpxx is the default
when the triple vendor is 'img' or 'mti', the ABI is O32, and the CPU is
between mips2 and mips32r2/mips64r2 (inclusive).

-mno-shared is always given to the assembler to match the effect of
-mabicalls (currently unimplemented but Clang acts as if it is given).
Similarly, -call_nonpic is always given to match the effect of -mplt (also
unimplemented and acts as if given) except when the ABI is 64 in which case
-mplt has no effect so -KPIC is given instead.

-mhard-float/-msoft-float are now passed on.

-modd-spreg/-mno-odd-spreg are now passed on.

-mno-mips16 is correctly passed on. The assembler option is -no-mips16 not
-mno-mips16

Differential Revision: http://reviews.llvm.org/D4515



git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@213138 91177308-0d34-0410-b5e6-96231b3b80d8
clang/test/Sema/warn-documentation-almost-trailing.c: Rewrite checks with @LINE.

git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@213139 91177308-0d34-0410-b5e6-96231b3b80d8
clang/test: Introduce the feature "staticanalyzer" for --enable-clang-static-analyzer.

git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@213140 91177308-0d34-0410-b5e6-96231b3b80d8
[Driver][Mips] Reduce code duplication. Remove static isMipsNan2008() function.
Use the tools::mips::isNaN2008() routine instead.

git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@213141 91177308-0d34-0410-b5e6-96231b3b80d8
[Driver][Mips] Remove flags which is not used in multi-library selection.

No functional changes.

git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@213142 91177308-0d34-0410-b5e6-96231b3b80d8
[Driver][Mips] Reduce code duplication - use existing function
getMipsCPUAndABI() to get MIPS ABI name during multi-library selection.

No functional changes.

git-svn-id: http://llvm.org/svn/llvm-project/cfe/trunk@213143 91177308-0d34-0410-b5e6-96231b3b80d8