]> granicus.if.org Git - clang/commit
Fix crash with unsupported architectures in Linux/Gnu target triples.
authorFlorian Hahn <florian.hahn@arm.com>
Thu, 1 Dec 2016 11:02:59 +0000 (11:02 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Thu, 1 Dec 2016 11:02:59 +0000 (11:02 +0000)
commit9780086c033e9543f678002976a3061942a09c0c
treeb905cbd702cb40e8dc9b621dfa2105d4d6c5656e
parent1d4b939b7dd89f121730306d6a42d98f6f83bcb7
Fix crash with unsupported architectures in Linux/Gnu target triples.

Summary: This patch adds a check and an error message to gnutools::Linker::ConstructJob in case the architecture is not supported. For most other operating systems, the error message is created in lib/Basic/Targets.cpp:AllocateTarget, but when construction the linker arguments for the gnutools linker a supported architecture is required.

Reviewers: rafael, joerg, echristo

Subscribers: mehdi_amini, joerg, dschuff, cfe-commits

Differential Revision: https://reviews.llvm.org/D27066

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@288327 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/unsupported-target-arch.c [new file with mode: 0644]