[PATCH] D44684: [mips] Improve handling of -fno-[pic/PIC] option

Aleksandar Beserminji via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 20 08:44:29 PDT 2018


abeserminji created this revision.
abeserminji added reviewers: petarj, sdardis.
Herald added subscribers: llvm-commits, arichardson.

- On N64 ABI, -mno-abicalls is needed to disable PIC. Warning is reported when only -fno-pic/-fno-PIC is used. This is how GCC behaves.
- An error is reported when -fno-pic or -fno-PIC is used in combination with -mabicalls.


Repository:
  rL LLVM

https://reviews.llvm.org/D44684

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44684.139118.patch
Type: text/x-patch
Size: 9233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180320/515f1b4e/attachment-0001.bin>


More information about the cfe-commits mailing list