[PATCH] [ARM] Handle conflicts between -mfpu and -mfloat-abi options
Asiri Rathnayake
asiri.rathnayake at arm.com
Tue Sep 23 02:56:09 PDT 2014
Currently we allow combinations of options like the ones below:
```
./clang -target <...> -mfpu=vfp4 -mfloat-abi=soft ...
./clang -target <...> -mfloat-abi=hard -mfpu=none ...
```
Such usage should be warned / prevented because those options conflict in meaning. This patch implements the following scheme when presented with such options:
-mfloat-abi=soft -mfpu=FPU => warn, ignore the FPU, use soft-float
-mfloat-abi=softfp -mfpu=none => warn, use soft-float
-mfloat-abi=hard -mfpu=none => downgradable error, use soft-float
http://reviews.llvm.org/D5460
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains.cpp
lib/Driver/Tools.cpp
lib/Driver/Tools.h
test/Driver/arm-mfpu.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5460.13980.patch
Type: text/x-patch
Size: 9445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140923/947b82e5/attachment.bin>
More information about the cfe-commits
mailing list