summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/debug-options.c
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2014-10-21 19:20:21 +0000
committerHal Finkel <hfinkel@anl.gov>2014-10-21 19:20:21 +0000
commit4add5dc0931ee68e502f8a614c220913031660e2 (patch)
treea1890e1c2bc55c9ba9d1f51bda2948c42b6dffdf /clang/test/Driver/debug-options.c
parentf03ae4efa7793cd912468960e837a3064198a5db (diff)
downloadbcm5719-llvm-4add5dc0931ee68e502f8a614c220913031660e2.tar.gz
bcm5719-llvm-4add5dc0931ee68e502f8a614c220913031660e2.zip
Treat -g1 as -gline-tables-only
-g1 on gcc (and also IBM's xlc) are documented to be very similar to -gline-tables-only. Our -gline-tables-only might still be more verbose than -g1 on other compilers, but currently we treat -g1 as -g, and so we're producing much more debug info at -g1 than everybody else. Treating -g1 as -gline-tables-only brings us much closer to what everyone else is doing. For more information, see the discussion on http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039649.html llvm-svn: 220311
Diffstat (limited to 'clang/test/Driver/debug-options.c')
-rw-r--r--clang/test/Driver/debug-options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Driver/debug-options.c b/clang/test/Driver/debug-options.c
index 80a01d48e8c..50461798efd 100644
--- a/clang/test/Driver/debug-options.c
+++ b/clang/test/Driver/debug-options.c
@@ -33,6 +33,8 @@
// RUN: %clang -### -c -g -g0 %s 2>&1 | FileCheck -check-prefix=G_NO %s
// RUN: %clang -### -c -ggdb0 %s 2>&1 | FileCheck -check-prefix=G_NO %s
//
+// RUN: %clang -### -c -g1 %s 2>&1 \
+// RUN: | FileCheck -check-prefix=GLTO_ONLY %s
// RUN: %clang -### -c -gmlt %s 2>&1 \
// RUN: | FileCheck -check-prefix=GLTO_ONLY %s
// RUN: %clang -### -c -gline-tables-only %s 2>&1 \
OpenPOWER on IntegriCloud