summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/debug-options.c
diff options
context:
space:
mode:
authorEkaterina Romanova <katya_romanova@playstation.sony.com>2015-10-14 01:09:02 +0000
committerEkaterina Romanova <katya_romanova@playstation.sony.com>2015-10-14 01:09:02 +0000
commitae50156fbf658b08147f359c4639a7e23fd0b42b (patch)
treefbe4f535c8e2edebcdeb2a7ccea018e7c3e4d560 /clang/test/Driver/debug-options.c
parent29ada6d178890d843133fd67300b96427951086a (diff)
downloadbcm5719-llvm-ae50156fbf658b08147f359c4639a7e23fd0b42b.tar.gz
bcm5719-llvm-ae50156fbf658b08147f359c4639a7e23fd0b42b.zip
I took care of the build problem in the commit 250252.
Resubmitting the patch. This patch adds missing pieces to clang, including the PS4 toolchain definition, added warnings, PS4 defaults, and Driver changes needed for our compiler. A patch by Filipe Cabecinhas, Pierre Gousseau and Katya Romanova! Differential Revision: http://reviews.llvm.org/D13482 llvm-svn: 250262
Diffstat (limited to 'clang/test/Driver/debug-options.c')
-rw-r--r--clang/test/Driver/debug-options.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Driver/debug-options.c b/clang/test/Driver/debug-options.c
index 437e9fcb500..25ccc3ea4a1 100644
--- a/clang/test/Driver/debug-options.c
+++ b/clang/test/Driver/debug-options.c
@@ -27,6 +27,17 @@
// RUN: %clang -### -c -ggdb3 %s -target x86_64-apple-darwin 2>&1 \
// RUN: | FileCheck -check-prefix=G_DARWIN %s
+// On the PS4, -g defaults to -gno-column-info, and we always generate the
+// arange section.
+// RUN: %clang -### -c %s -target x86_64-scei-ps4 2>&1 \
+// RUN: | FileCheck -check-prefix=G_PS4 %s
+// RUN: %clang -### -c %s -g -target x86_64-scei-ps4 2>&1 \
+// RUN: | FileCheck -check-prefix=G_PS4 %s
+// RUN: %clang -### -c %s -g -target x86_64-scei-ps4 2>&1 \
+// RUN: | FileCheck -check-prefix=NOCI %s
+// RUN: %clang -### -c %s -g -gcolumn-info -target x86_64-scei-ps4 2>&1 \
+// RUN: | FileCheck -check-prefix=CI %s
+
// RUN: %clang -### -c -gdwarf-2 %s 2>&1 | FileCheck -check-prefix=G_D2 %s
//
// RUN: %clang -### -c -gfoo %s 2>&1 | FileCheck -check-prefix=G_NO %s
@@ -86,6 +97,9 @@
// G_DARWIN: "-cc1"
// G_DARWIN: "-dwarf-version=2"
//
+// G_PS4: "-cc1"
+// G_PS4: "-generate-arange-section"
+//
// G_D2: "-cc1"
// G_D2: "-dwarf-version=2"
//
OpenPOWER on IntegriCloud