diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-06-21 08:22:39 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-06-21 08:22:39 +0000 |
commit | f50a9ffd0bea49afc0cfcea588dc73962cc7ba3a (patch) | |
tree | b274c39acc7332ae34cf8c17dd3a4f1abcee045f /clang/test/Driver/debug-unsupported.c | |
parent | f8947a33603dce97057071d9ed6a4320df6d9766 (diff) | |
download | bcm5719-llvm-f50a9ffd0bea49afc0cfcea588dc73962cc7ba3a.tar.gz bcm5719-llvm-f50a9ffd0bea49afc0cfcea588dc73962cc7ba3a.zip |
Improve support for -g options accepted by Clang:
1. Accept flags -g[0-3], -ggdb[0-3], -gdwarf-[2-4] and collapse them to simple -g (except -g0/-ggdb0).
2. Produce driver error on unsupported formats (-gcoff, -gstabs, -gvms) and options (-gtoggle).
3. Recognize and ignore flags -g[no-]strict-dwarf, -g[no-]record-gcc-switches.
llvm-svn: 158906
Diffstat (limited to 'clang/test/Driver/debug-unsupported.c')
-rw-r--r-- | clang/test/Driver/debug-unsupported.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Driver/debug-unsupported.c b/clang/test/Driver/debug-unsupported.c new file mode 100644 index 00000000000..2c3de0b576f --- /dev/null +++ b/clang/test/Driver/debug-unsupported.c @@ -0,0 +1,13 @@ +// RUN: %clang -c -gstabs %s 2>&1 | FileCheck %s +// RUN: %clang -c -gstabs+ %s 2>&1 | FileCheck %s +// RUN: %clang -c -gcoff %s 2>&1 | FileCheck %s +// RUN: %clang -c -gxcoff %s 2>&1 | FileCheck %s +// RUN: %clang -c -gxcoff+ %s 2>&1 | FileCheck %s +// RUN: %clang -c -gvms %s 2>&1 | FileCheck %s +// RUN: %clang -c -gstabs1 %s 2>&1 | FileCheck %s +// RUN: %clang -c -gcoff2 %s 2>&1 | FileCheck %s +// RUN: %clang -c -gxcoff3 %s 2>&1 | FileCheck %s +// RUN: %clang -c -gvms0 %s 2>&1 | FileCheck %s +// RUN: %clang -c -gtoggle %s 2>&1 | FileCheck %s +// +// CHECK: clang: error: unsupported option |