[mips] Fix handling of GNUABIN32 environment in a target triple
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 15 Oct 2018 22:43:23 +0000 (22:43 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 15 Oct 2018 22:43:23 +0000 (22:43 +0000)
commitdb81c7b9c964db39bbc42749dc30316dd9f58eb8
treec9fba593b08f8f80346179749bcebd13840e15a0
parent6d92ca61f918456726b67d124499cbf0595ba335
[mips] Fix handling of GNUABIN32 environment in a target triple

The `GNUABIN32` environment in a target triple implies using the N32
ABI. This patch adds support for this environment and switches on N32
ABI if necessary.

Patch by Patch by YunQiang Su.

Differential revision: https://reviews.llvm.org/D51464

llvm-svn: 344570
clang/lib/Basic/Targets/Mips.h
clang/lib/Driver/ToolChains/Arch/Mips.cpp
clang/lib/Driver/ToolChains/Gnu.cpp
clang/lib/Driver/ToolChains/Linux.cpp
clang/test/CodeGen/atomics-inlining.c
clang/test/CodeGen/mips-zero-sized-struct.c
clang/test/CodeGen/target-data.c
clang/test/CodeGen/xray-attributes-supported.cpp
clang/test/Driver/clang-translation.c
clang/test/Driver/linux-ld.c