]> granicus.if.org Git - clang/commit
[mips] Prevent PIC to be set to level 2
authorAleksandar Beserminji <Aleksandar.Beserminji@mips.com>
Mon, 16 Apr 2018 10:21:24 +0000 (10:21 +0000)
committerAleksandar Beserminji <Aleksandar.Beserminji@mips.com>
Mon, 16 Apr 2018 10:21:24 +0000 (10:21 +0000)
commit45619d4561195458448ffaf9f4068d7bbc45f723
treeb53084514cc53b9ab822a3815c4162afb143fcd1
parentf3653a1e8543938f9b4583c016ea53206e54b7ab
[mips] Prevent PIC to be set to level 2

MIPS does not use PIC level 2 for historical reasons,
even with -fPIC/-mxgot/multigot options. This patch
prevents PIC to be set to level 2 for MIPS.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330118 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/CommonArgs.cpp
test/Driver/pic.c