summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorStefan Maksimovic <stefan.maksimovic@mips.com>2018-08-22 09:26:25 +0000
committerStefan Maksimovic <stefan.maksimovic@mips.com>2018-08-22 09:26:25 +0000
commiteb63256095dd57f2d8caaaed07d0190dfb27be8c (patch)
tree6f43bef009d28dc1d95100b3b66fa77f25217817 /clang/lib/Frontend/CompilerInvocation.cpp
parentb092da8c95885cf86edcc1bc7679c5f8fd353e8b (diff)
downloadbcm5719-llvm-eb63256095dd57f2d8caaaed07d0190dfb27be8c.tar.gz
bcm5719-llvm-eb63256095dd57f2d8caaaed07d0190dfb27be8c.zip
[clang][mips] Set __mips_fpr correctly for -mfpxx
Set __mips_fpr to 0 if o32 ABI is used with either -mfpxx or none of -mfp32, -mfpxx, -mfp64 being specified. Introduce additional checks: -mfpxx is only to be used in conjunction with the o32 ABI. report an error when incompatible options are provided. Formerly no errors were raised when combining n32/n64 ABIs with -mfp32 and -mfpxx. There are other cases when __mips_fpr should be set to 0 that are not covered, ex. using o32 on a mips64 cpu which is valid but not supported in the backend as of yet. Differential Revision: https://reviews.llvm.org/D50557 llvm-svn: 340391
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud