summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-09-27 05:06:31 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-09-27 05:06:31 +0000
commitacfcd0d51be7022b5d18ca26832892a5cc7bc1c2 (patch)
tree37b7afdb99048ed058398e27e3dd0f06f356265e
parentf2bc8f35a29d4bbe68af500d0f3811331b5be862 (diff)
downloadbcm5719-llvm-acfcd0d51be7022b5d18ca26832892a5cc7bc1c2.tar.gz
bcm5719-llvm-acfcd0d51be7022b5d18ca26832892a5cc7bc1c2.zip
Add -fno-unsigned-char and ignore it. We already support -fno-signed-char, add
both flags to the driver test. llvm-svn: 191486
-rw-r--r--clang/include/clang/Driver/Options.td1
-rw-r--r--clang/test/Driver/clang_f_opts.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index 79e6b4efd57..dddcf447b6a 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -796,6 +796,7 @@ def fno_unroll_loops : Flag<["-"], "fno-unroll-loops">, Group<f_Group>,
HelpText<"Turn off loop unroller">, Flags<[CC1Option]>;
def funsigned_bitfields : Flag<["-"], "funsigned-bitfields">, Group<f_Group>;
def funsigned_char : Flag<["-"], "funsigned-char">, Group<f_Group>;
+def fno_unsigned_char : Flag<["-"], "fno-unsigned-char">, Group<clang_ignored_f_Group>;
def funwind_tables : Flag<["-"], "funwind-tables">, Group<f_Group>;
def fuse_cxa_atexit : Flag<["-"], "fuse-cxa-atexit">, Group<f_Group>;
def fuse_init_array : Flag<["-"], "fuse-init-array">, Group<f_Group>, Flags<[CC1Option]>,
diff --git a/clang/test/Driver/clang_f_opts.c b/clang/test/Driver/clang_f_opts.c
index eae78fe8b39..c264a75cce7 100644
--- a/clang/test/Driver/clang_f_opts.c
+++ b/clang/test/Driver/clang_f_opts.c
@@ -124,4 +124,6 @@
// RUN: -fno-builtin-foobar \
// RUN: -fno-builtin-strcat -fno-builtin-strcpy \
// RUN: -fno-var-tracking \
+// RUN: -fno-unsigned-char \
+// RUN: -fno-signed-char \
// RUN: %s
OpenPOWER on IntegriCloud