diff options
author | Eric Christopher <echristo@gmail.com> | 2013-06-07 23:25:01 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-06-07 23:25:01 +0000 |
commit | ac0217424cb4e040236b15f2f78ad69e09502ce7 (patch) | |
tree | da1dc44fb08291ddfb31c94ca42c1496eae04413 /clang/test/Driver/linux-ld.c | |
parent | c11c169530ab6ac3cba982c9c10597c3bcaaa309 (diff) | |
download | bcm5719-llvm-ac0217424cb4e040236b15f2f78ad69e09502ce7.tar.gz bcm5719-llvm-ac0217424cb4e040236b15f2f78ad69e09502ce7.zip |
When we're compiling with -pg make sure to link with gcrt1.o on linux. Be
sure to do this always, this matches the behavior for the gcc driver.
Fixes PR16251.
Based on a patch by Qiao Yang.
llvm-svn: 183591
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
-rw-r--r-- | clang/test/Driver/linux-ld.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index ebac718b33b..78223bb06bc 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -667,3 +667,9 @@ // RUN: | FileCheck --check-prefix=CHECK-NOCRTFASTMATH %s // CHECK-CRTFASTMATH: usr/lib/gcc/x86_64-unknown-linux/4.6.0/crtfastmath.o // CHECK-NOCRTFASTMATH-NOT: crtfastmath.o + +// Check that we link in gcrt1.o when compiling with -pg +// RUN: %clang -pg -target x86_64-unknown-linux -### %s \ +// RUN: --sysroot=%S/Inputs/basic_linux_tree 2>& 1 \ +// RUN: | FileCheck --check-prefix=CHECK-PG %s +// CHECK-PG: gcrt1.o |