Driver: use GNU::Link for the Generic_GCC toolchain
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 27 Jun 2014 05:06:41 +0000 (05:06 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 27 Jun 2014 05:06:41 +0000 (05:06 +0000)
commit4b68a05f3d29036a3bfe778255cffcd983349a13
treefc5a188e47fdd9268d4967bea28f94c24e3f14c5
parent5632722cab2184da3610bfec5d9ca00b8d46a815
Driver: use GNU::Link for the Generic_GCC toolchain

This changes the behaviour of the driver for linking to match that of the
Generic_GCC::Assemble.    The default link should use "ld" rather than "gcc" for
the linker as gcc does.  This avoids the unnecessary round-tripping through gcc.
It also is much more reasonable behaviour from the user's perspective.  This
should have been updated with SVN r195554 which changed the behaviour of
Generic_GCC::Assemble.

The gcc_forward test needs to be updated to mark the fact that -march is a flag
for GCC not ld.  This was updated as a typo fix, but added a check for a flag
that is not a link flag.

The bindings test covers the change for testing, and thus no new test was added.

llvm-svn: 211866
clang/lib/Driver/ToolChains.cpp
clang/lib/Driver/Tools.cpp
clang/test/Driver/bindings.c
clang/test/Driver/gcc_forward.c