]> granicus.if.org Git - clang/commit
Reland "[mips] Teach the driver to accept -m(no-)gpopt."
authorSimon Dardis <simon.dardis@imgtec.com>
Wed, 19 Jul 2017 13:12:37 +0000 (13:12 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Wed, 19 Jul 2017 13:12:37 +0000 (13:12 +0000)
commit680fb28953fd42106401493536df7c4851146073
tree318d725c324b2557d35e7bf3a7d2fc8c1fc3296b
parent0d160eb73530bbcb25c4cacb698acb50764fe76e
Reland "[mips] Teach the driver to accept -m(no-)gpopt."

This patch teaches the driver to pass -mgpopt by default to the backend when it
is supported, i.e. we are using -mno-abicalls.

Reviewers: atanasyan, slthakur

Differential Revision: https://reviews.llvm.org/D35548

This version fixes a logic error that generated warnings incorrectly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308458 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Basic/DiagnosticGroups.td
include/clang/Driver/Options.td
lib/Driver/ToolChains/Clang.cpp
test/Driver/mips-features.c
test/Driver/mips-gpopt-warning.c [new file with mode: 0644]