From 6a09ad27c77a6795173322abf51c054d621236ec Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 26 Sep 2013 16:45:27 +0000 Subject: [PATCH] Remove fno_builtin_strcat and fno_builtin_strcpy. They are already handled by the generic fno_bultin_, which also avoids unused warnings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191437 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Driver/Options.td | 2 -- test/Driver/clang_f_opts.c | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index 041803e34d..fbeb8c78b7 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -578,8 +578,6 @@ def fno_assume_sane_operator_new : Flag<["-"], "fno-assume-sane-operator-new">, Flags<[CC1Option]>; def fno_blocks : Flag<["-"], "fno-blocks">, Group; def fno_borland_extensions : Flag<["-"], "fno-borland-extensions">, Group; -def fno_builtin_strcat : Flag<["-"], "fno-builtin-strcat">, Group; -def fno_builtin_strcpy : Flag<["-"], "fno-builtin-strcpy">, Group; def fno_builtin : Flag<["-"], "fno-builtin">, Group, Flags<[CC1Option]>, HelpText<"Disable implicit builtin knowledge of functions">; def fno_builtin_ : Joined<["-"], "fno-builtin-">, Group, diff --git a/test/Driver/clang_f_opts.c b/test/Driver/clang_f_opts.c index e1cbc33694..da39638a02 100644 --- a/test/Driver/clang_f_opts.c +++ b/test/Driver/clang_f_opts.c @@ -101,7 +101,7 @@ // CHECK-MAX-O: -O3 // Test that we don't error on these. -// RUN: %clang -### -S \ +// RUN: %clang -### -S -Werror \ // RUN: -falign-functions -falign-functions=2 -fno-align-functions \ // RUN: -fasynchronous-unwind-tables -fno-asynchronous-unwind-tables \ // RUN: -fbuiltin -fno-builtin \ @@ -122,4 +122,5 @@ // RUN: -ftracer -fno-tracer \ // RUN: -funroll-all-loops -fno-unroll-all-loops \ // RUN: -fno-builtin-foobar \ +// RUN: -fno-builtin-strcat -fno-builtin-strcpy \ // RUN: %s -- 2.40.0