[PATCH] D21023: [mips] Defer validity check for CPU/ABI pairs and improve error message for invalid cases.
Daniel Sanders via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 6 08:12:27 PDT 2016
dsanders created this revision.
dsanders added a reviewer: atanasyan.
dsanders added a subscriber: cfe-commits.
Herald added a subscriber: sdardis.
The validity of ABI/CPU pairs is no longer checked on the fly but is
instead checked after initialization. As a result, invalid CPU/ABI pairs
can be reported as being known but invalid instead of being unknown. For
example, we now emit:
error: ABI 'n32' is not supported on CPU 'mips32r2'
instead of:
error: unknown target ABI 'n64'
http://reviews.llvm.org/D21023
Files:
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp
test/Driver/mips-abi.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21023.59724.patch
Type: text/x-patch
Size: 8752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160606/f3fd8624/attachment-0001.bin>
More information about the cfe-commits
mailing list