From 05b0798916f01690b5903302e51f3136274e291f Mon Sep 17 00:00:00 2001 From: Arthur Marble Date: Tue, 5 Aug 2014 18:21:20 +0000 Subject: [PATCH] Added f and m flags to be ignored. These will not display a warning. The revision for this patch is here: http://reviews.llvm.org/D4570. This will help with the rebuild of Debian with clang. Here is a link to the errors that Debian is experiencing: http://clang.debian.net/status.php?version=3.4.2&key=UNKNOWN_ARG llvm-svn: 214907 --- clang/include/clang/Driver/Options.td | 10 ++++++++++ clang/test/Driver/clang_f_opts.c | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td index 7989667c6814..759c5b5d587d 100644 --- a/clang/include/clang/Driver/Options.td +++ b/clang/include/clang/Driver/Options.td @@ -476,6 +476,7 @@ def femit_all_decls : Flag<["-"], "femit-all-decls">, Group, Flags<[CC1 HelpText<"Emit all declarations, even if unused">; def fencoding_EQ : Joined<["-"], "fencoding=">, Group; def ferror_limit_EQ : Joined<["-"], "ferror-limit=">, Group, Flags<[CoreOption]>; +def fexec_charset_EQ : Joined<["-"], "fexec-charset=">, Group; def fexceptions : Flag<["-"], "fexceptions">, Group, Flags<[CC1Option]>, HelpText<"Enable support for exception handling">; def fexcess_precision_EQ : Joined<["-"], "fexcess-precision=">, @@ -797,6 +798,7 @@ def foptimize_sibling_calls : Flag<["-"], "foptimize-sibling-calls">, Group; def force__flat__namespace : Flag<["-"], "force_flat_namespace">; def force__load : Separate<["-"], "force_load">; +def force_addr : Joined<["-"], "fforce-addr">, Group; def foutput_class_dir_EQ : Joined<["-"], "foutput-class-dir=">, Group; def fpack_struct : Flag<["-"], "fpack-struct">, Group; def fno_pack_struct : Flag<["-"], "fno-pack-struct">, Group; @@ -1039,6 +1041,10 @@ def m3dnow : Flag<["-"], "m3dnow">, Group; def m64 : Flag<["-"], "m64">, Group, Flags<[DriverOption, CoreOption]>; def mx32 : Flag<["-"], "mx32">, Group, Flags<[DriverOption, CoreOption]>; def mabi_EQ : Joined<["-"], "mabi=">, Group; +def malign_functions_EQ : Joined<["-"], "malign-functions=">, Group; +def malign_loops_EQ : Joined<["-"], "malign-loops=">, Group; +def malign_jumps_EQ : Joined<["-"], "malign-jumps=">, Group; +def mfancy_math_387 : Flag<["-"], "mfancy-math-387">, Group; def march_EQ : Joined<["-"], "march=">, Group; def masm_EQ : Joined<["-"], "masm=">, Group, Flags<[DriverOption]>; def mcmodel_EQ : Joined<["-"], "mcmodel=">, Group; @@ -1620,6 +1626,7 @@ def falign_jumps_EQ : Joined<["-"], "falign-jumps=">, Group, Group; defm caller_saves : BooleanFFlag<"caller-saves">, Group; defm reorder_blocks : BooleanFFlag<"reorder-blocks">, Group; defm eliminate_unused_debug_types : BooleanFFlag<"eliminate-unused-debug-types">, Group; @@ -1629,6 +1636,7 @@ defm delete_null_pointer_checks : BooleanFFlag<"delete-null-pointer-checks">, Group; defm fat_lto_objects : BooleanFFlag<"fat-lto-objects">, Group; defm float_store : BooleanFFlag<"float-store">, Group; +defm friend_injection : BooleanFFlag<"friend-injection">, Group; defm function_attribute_list : BooleanFFlag<"function-attribute-list">, Group; defm gcse : BooleanFFlag<"gcse">, Group; defm gcse_after_reload: BooleanFFlag<"gcse-after-reload">, Group; @@ -1637,6 +1645,7 @@ defm gcse_sm: BooleanFFlag<"gcse-sm">, Group, Group; defm ident : BooleanFFlag<"ident">, Group; defm implicit_templates : BooleanFFlag<"implicit-templates">, Group; +defm implement_inlines : BooleanFFlag<"implement-inlines">, Group; defm merge_constants : BooleanFFlag<"merge-constants">, Group; defm modulo_sched : BooleanFFlag<"modulo-sched">, Group; defm modulo_sched_allow_regmoves : BooleanFFlag<"modulo-sched-allow-regmoves">, @@ -1671,6 +1680,7 @@ defm signaling_nans : BooleanFFlag<"signaling-nans">, Group, Group; defm spec_constr_count : BooleanFFlag<"spec-constr-count">, Group; +defm stack_check : BooleanFFlag<"stack-check">, Group; defm strength_reduce : BooleanFFlag<"strength-reduce">, Group; defm tls_model : BooleanFFlag<"tls-model">, Group; diff --git a/clang/test/Driver/clang_f_opts.c b/clang/test/Driver/clang_f_opts.c index 2825ae5465bc..b0b0342f07a1 100644 --- a/clang/test/Driver/clang_f_opts.c +++ b/clang/test/Driver/clang_f_opts.c @@ -207,6 +207,16 @@ // RUN: -fno-caller-saves -fcaller-saves \ // RUN: -fno-reorder-blocks -freorder-blocks \ // RUN: -fno-schedule-insns2 -fschedule-insns2 \ +// RUN: -fno-stack-check \ +// RUN: -fno-check-new -fcheck-new \ +// RUN: -ffriend-injection \ +// RUN: -fno-implement-inlines -fimplement-inlines \ +// RUN: -fstack-check \ +// RUN: -fexec-charset=UTF-8 \ +// RUN: -fforce-addr \ +// RUN: -malign-functions=100 \ +// RUN: -malign-loops=100 \ +// RUN: -malign-jumps=100 \ // RUN: %s 2>&1 | FileCheck --check-prefix=IGNORE %s // IGNORE-NOT: error: unknown argument