]> granicus.if.org Git - clang/commit
Reland "[mips] Teach the driver to accept -m(no-)gpopt."
authorSimon Dardis <simon.dardis@imgtec.com>
Thu, 20 Jul 2017 14:04:12 +0000 (14:04 +0000)
committerSimon Dardis <simon.dardis@imgtec.com>
Thu, 20 Jul 2017 14:04:12 +0000 (14:04 +0000)
commit7de981a54a206cc0af340771fe040be59af5e7d4
tree40e30e690a9bb44ccb7f7498c4cbc3e807c8f79d
parentc176e5d1cd6b66ee6ef6e1b17b2d4b94ef91f27f
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 and
gets rid of spurious arguments to the backend when -mgpopt is not used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308619 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]