[PATCH] D44381: [mips] Change the way how Clang chooses relocation mode

Aleksandar Beserminji via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 12 06:46:25 PDT 2018


abeserminji created this revision.
abeserminji added reviewers: sdardis, petarj.
Herald added a subscriber: arichardson.

This patch makes Clang behave more like gcc.

- On N64 ABI, -mno-abicalls is needed to disable PIC. Warning is reported when only -fno-pic/-fno-PIC is used.
- An error is reported when -fno-pic or -fno-PIC is used in combination with -mabicalls.
- PIC level is never 2 (for now).


Repository:
  rC Clang

https://reviews.llvm.org/D44381

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  lib/Driver/ToolChains/Arch/Mips.cpp
  lib/Driver/ToolChains/CommonArgs.cpp
  test/Driver/mips-abicalls-error.c
  test/Driver/mips-abicalls-warning.c
  test/Driver/mips-as.c
  test/Driver/mips-features.c
  test/Driver/pic.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44381.137979.patch
Type: text/x-patch
Size: 10604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180312/a47a6470/attachment.bin>


More information about the cfe-commits mailing list