summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/function-sections.c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-03-27 17:55:23 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-03-27 17:55:23 +0000
commit463a0afe15b15d35d0c7dc9750ee3a5a480bcf8c (patch)
tree74ee2024c3b2e3008582624c5fdd0c6d647baeee /clang/test/Driver/function-sections.c
parent75e0c4b0603c2006111f164c4113c4f26bcdaf64 (diff)
downloadbcm5719-llvm-463a0afe15b15d35d0c7dc9750ee3a5a480bcf8c.tar.gz
bcm5719-llvm-463a0afe15b15d35d0c7dc9750ee3a5a480bcf8c.zip
Don't use unique section names by default if using the integrated as.
This saves some IO and ccache space by not creating long section names. It should work with every ELF linker. llvm-svn: 233393
Diffstat (limited to 'clang/test/Driver/function-sections.c')
-rw-r--r--clang/test/Driver/function-sections.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Driver/function-sections.c b/clang/test/Driver/function-sections.c
index ba065b1367a..6c243195f62 100644
--- a/clang/test/Driver/function-sections.c
+++ b/clang/test/Driver/function-sections.c
@@ -72,3 +72,13 @@
// RUN: -target i386-unknown-linux \
// RUN: -fno-unique-section-names \
// RUN: | FileCheck --check-prefix=CHECK-NOUS %s
+
+// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
+// RUN: -target i386-unknown-linux \
+// RUN: -fno-integrated-as \
+// RUN: | FileCheck --check-prefix=CHECK-US %s
+
+// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
+// RUN: -target i386-unknown-linux \
+// RUN: -fintegrated-as \
+// RUN: | FileCheck --check-prefix=CHECK-NOUS %s
OpenPOWER on IntegriCloud