diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-27 05:06:41 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-06-27 05:06:41 +0000 |
commit | 4b68a05f3d29036a3bfe778255cffcd983349a13 (patch) | |
tree | fc5a188e47fdd9268d4967bea28f94c24e3f14c5 /clang/test/Driver/gcc_forward.c | |
parent | 5632722cab2184da3610bfec5d9ca00b8d46a815 (diff) | |
download | bcm5719-llvm-4b68a05f3d29036a3bfe778255cffcd983349a13.tar.gz bcm5719-llvm-4b68a05f3d29036a3bfe778255cffcd983349a13.zip |
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
Diffstat (limited to 'clang/test/Driver/gcc_forward.c')
-rw-r--r-- | clang/test/Driver/gcc_forward.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Driver/gcc_forward.c b/clang/test/Driver/gcc_forward.c index 3bc413193f1..a58cd9f5013 100644 --- a/clang/test/Driver/gcc_forward.c +++ b/clang/test/Driver/gcc_forward.c @@ -17,14 +17,14 @@ // CHECK: as{{[^"]*}}" // CHECK: "-o" "{{[^"]+}}.o" // -// gcc-ld -// CHECK: gcc{{[^"]*}}" +// gnu-ld +// CHECK: ld{{[^"]*}}" // CHECK-NOT: "-mlinker-version=10" // CHECK-NOT: "-Xclang" // CHECK-NOT: "foo-bar" // CHECK-NOT: "-Wall" // CHECK-NOT: "-Wdocumentation" -// CHECK: -march +// CHECK-NOT: "-march" // CHECK-NOT: "-mlinker-version=10" // CHECK-NOT: "-Xclang" // CHECK-NOT: "foo-bar" |