From dd77041973fde6e27ce25af6950148c575eb4c69 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Wed, 6 Feb 2013 18:15:40 +0000 Subject: [PATCH] Accept and ignore the -fextended-identifiers option. This was GCC's option to turn on UCN support, which we always have on now in C99 and C++ modes. Additionally, mark the -fno-extended-identifiers option as unsupported, since we don't support disabling UCNs in C99 and C++ modes. PR11538 llvm-svn: 174530 --- clang/include/clang/Driver/Options.td | 4 ++++ clang/test/Driver/clang_f_opts.c | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 1e56e7f..35ea803 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -376,6 +376,10 @@ def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group; def fexceptions : Flag<["-"], "fexceptions">, Group, Flags<[CC1Option]>, HelpText<"Enable support for exception handling">; def fextdirs_EQ : Joined<["-"], "fextdirs=">, Group; +def fextended_identifiers : Flag<["-"], "fextended-identifiers">, + Group; +def fno_extended_identifiers : Flag<["-"], "fno-extended-identifiers">, + Group, Flags<[Unsupported]>; def fhosted : Flag<["-"], "fhosted">, Group; def ffast_math : Flag<["-"], "ffast-math">, Group, Flags<[CC1Option]>, HelpText<"Enable the *frontend*'s 'fast-math' mode. This has no effect on " diff --git a/clang/test/Driver/clang_f_opts.c b/clang/test/Driver/clang_f_opts.c index 95204f2..1bd2e14 100644 --- a/clang/test/Driver/clang_f_opts.c +++ b/clang/test/Driver/clang_f_opts.c @@ -57,3 +57,9 @@ // RUN: %clang -### -S -ftree-slp-vectorize -fno-slp-vectorize %s 2>&1 | FileCheck -check-prefix=CHECK-NO-SLP-VECTORIZE %s // CHECK-SLP-VECTORIZE: "-vectorize" // CHECK-NO-SLP-VECTORIZE-NOT: "-vectorize" + +// RUN: %clang -### -S -fextended-identifiers %s 2>&1 | FileCheck -check-prefix=CHECK-EXTENDED-IDENTIFIERS %s +// RUN: %clang -### -S -fno-extended-identifiers %s 2>&1 | FileCheck -check-prefix=CHECK-NO-EXTENDED-IDENTIFIERS %s +// CHECK-EXTENDED-IDENTIFIERS: "-cc1" +// CHECK-EXTENDED-IDENTIFIERS-NOT: "-fextended-identifiers" +// CHECK-NO-EXTENDED-IDENTIFIERS: error: unsupported option '-fno-extended-identifiers' -- 2.7.4