From db1ad606af140311ff9de0887f74e29fefe4d2d6 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 3 Oct 2013 19:45:55 +0000 Subject: [PATCH] Don't complain about -fuse-ld=gold (cf r191429). (There's a real implementation for this flag in review.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191926 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 5 +++-- test/Driver/clang_f_opts.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 257d195fc8..50b3f63087 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -1391,10 +1391,11 @@ multiclass BooleanFFlag { def fprofile_dir : Joined<["-"], "fprofile-dir=">, Group; defm profile_use : BooleanFFlag<"profile-use">, Group; -def fprofile_use_eq : Joined<["-"], "fprofile-use=">, Group; +def fprofile_use_EQ : Joined<["-"], "fprofile-use=">, Group; +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, Group; defm align_functions : BooleanFFlag<"align-functions">, Group; -def falign_functions_eq : Joined<["-"], "falign-functions=">, Group; +def falign_functions_EQ : Joined<["-"], "falign-functions=">, Group; def ffixed_line_length_VALUE : Joined<["-"], "ffixed-line-length-">, Group; diff --git a/test/Driver/clang_f_opts.c b/test/Driver/clang_f_opts.c index 57e28f9501..b7c579e283 100644 --- a/test/Driver/clang_f_opts.c +++ b/test/Driver/clang_f_opts.c @@ -121,6 +121,7 @@ // RUN: -fsee -fno-see \ // RUN: -ftracer -fno-tracer \ // RUN: -funroll-all-loops -fno-unroll-all-loops \ +// RUN: -fuse-ld=gold \ // RUN: -fno-builtin-foobar \ // RUN: -fno-builtin-strcat -fno-builtin-strcpy \ // RUN: -fno-var-tracking \ -- 2.40.0