[Mips] Generate warning for invalid '-mnan' and '-march' combinations
authorPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 14 Apr 2015 12:49:08 +0000 (12:49 +0000)
committerPetar Jovanovic <petar.jovanovic@imgtec.com>
Tue, 14 Apr 2015 12:49:08 +0000 (12:49 +0000)
commit1dbc317736ce52ce7239d6a1099456e8eac7bcd8
tree61848f9e4893fe6b8723d7606aa41649f56b572d
parent879d1be643e1b38381b85003498cf81c4039583f
[Mips] Generate warning for invalid '-mnan' and '-march' combinations

This patch generates a warning for invalid combination of '-mnan' and
'-march' options, it properly sets NaN encoding for a given '-march',
and it passes a proper NaN encoding to the assembler.

Patch by Vladimir Radosavljevic.

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

llvm-svn: 234882
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
clang/lib/Driver/Tools.cpp
clang/lib/Driver/Tools.h
clang/test/CodeGen/mips-unsupported-nan.c [new file with mode: 0644]
clang/test/Driver/mips-features.c
clang/test/Driver/mips-integrated-as.s
clang/test/Preprocessor/init.c