Index: include/clang/Driver/Options.td =================================================================== --- include/clang/Driver/Options.td +++ include/clang/Driver/Options.td @@ -577,6 +577,7 @@ def flat__namespace : Flag<["-"], "flat_namespace">; def flax_vector_conversions : Flag<["-"], "flax-vector-conversions">, Group; def flimited_precision_EQ : Joined<["-"], "flimited-precision=">, Group; +def flto_EQ : Joined<["-"], "flto=">, Group; def flto : Flag<["-"], "flto">, Group; def fno_lto : Flag<["-"], "fno-lto">, Group; def fmacro_backtrace_limit_EQ : Joined<["-"], "fmacro-backtrace-limit=">, @@ -1596,22 +1597,45 @@ defm align_functions : BooleanFFlag<"align-functions">, Group; def falign_functions_EQ : Joined<["-"], "falign-functions=">, Group; +defm align_labels : BooleanFFlag<"align-labels">, Group; +def falign_labels_EQ : Joined<["-"], "falign-labels=">, Group; +defm align_loops : BooleanFFlag<"align-loops">, Group; +def falign_loops_EQ : Joined<["-"], "falign-loops=">, Group; +defm align_jumps : BooleanFFlag<"align-jumps">, Group; +def falign_jumps_EQ : Joined<["-"], "falign-jumps=">, Group; + // FIXME: This option should be supported and wired up to our diognostics, but // ignore it for now to avoid breaking builds that use it. def fdiagnostics_show_location_EQ : Joined<["-"], "fdiagnostics-show-location=">, Group; +def fexcess_precision_EQ : Joined<["-"], "fexcess-precision=">, + Group; defm eliminate_unused_debug_types : BooleanFFlag<"eliminate-unused-debug-types">, Group; +defm branch_count_reg : BooleanFFlag<"branch-count-reg">, Group; +defm caller_saves : BooleanFFlag<"caller-saves">, Group; +defm no_default_inline : BooleanFFlag<"no-default-inline">, Group; defm float_store : BooleanFFlag<"float-store">, Group; defm function_attribute_list : BooleanFFlag<"function-attribute-list">, Group; defm gcse : BooleanFFlag<"gcse">, Group; +defm gcse_after_reload: BooleanFFlag<"gcse-after-reload">, Group; +defm gcse_las: BooleanFFlag<"gcse-las">, Group; +defm gcse_sm: BooleanFFlag<"gcse-sm">, Group; defm gnu : BooleanFFlag<"gnu">, Group; defm ident : BooleanFFlag<"ident">, Group; +defm ipa_cp : BooleanFFlag<"ipa-cp">, + Group; defm implicit_templates : BooleanFFlag<"implicit-templates">, Group; +defm inline_functions_called_once : BooleanFFlag<"inline-functions-called-once">, + Group; def finline_limit_EQ : Joined<["-"], "finline-limit=">, Group; defm finline_limit : BooleanFFlag<"inline-limit">, Group; defm ivopts : BooleanFFlag<"ivopts">, Group; +defm modulo_sched : BooleanFFlag<"modulo-sched">, Group; +defm modulo_sched_allow_regmoves : BooleanFFlag<"modulo-sched-allow-regmoves">, + Group; defm non_call_exceptions : BooleanFFlag<"non-call-exceptions">, Group; +defm peel_loops : BooleanFFlag<"peel-loops">, Group; defm permissive : BooleanFFlag<"permissive">, Group; defm prefetch_loop_arrays : BooleanFFlag<"prefetch-loop-arrays">, Group; defm printf : BooleanFFlag<"printf">, Group; @@ -1621,21 +1645,35 @@ defm profile_reusedist : BooleanFFlag<"profile-reusedist">, Group; defm profile_values : BooleanFFlag<"profile-values">, Group; defm regs_graph : BooleanFFlag<"regs-graph">, Group; +defm rename_registers : BooleanFFlag<"rename-registers">, Group; defm ripa : BooleanFFlag<"ripa">, Group; defm rounding_math : BooleanFFlag<"rounding-math">, Group; defm schedule_insns : BooleanFFlag<"schedule-insns">, Group; +defm schedule_insns2 : BooleanFFlag<"schedule-insns2">, Group; defm see : BooleanFFlag<"see">, Group; defm signaling_nans : BooleanFFlag<"signaling-nans">, Group; +defm single_precision_constant : BooleanFFlag<"single-precision-constant">, + Group; defm spec_constr_count : BooleanFFlag<"spec-constr-count">, Group; defm strength_reduce : BooleanFFlag<"strength-reduce">, Group; defm tls_model : BooleanFFlag<"tls-model">, Group; defm tracer : BooleanFFlag<"tracer">, Group; +defm tree_loop_im : BooleanFFlag<"tree_loop_im">, Group; +defm tree_loop_ivcanon : BooleanFFlag<"tree_loop_ivcanon">, Group; +defm tree_loop_linear : BooleanFFlag<"tree_loop_linear">, Group; defm tree_salias : BooleanFFlag<"tree-salias">, Group; defm tree_vectorizer_verbose : BooleanFFlag<"tree-vectorizer-verbose">, Group; defm unroll_all_loops : BooleanFFlag<"unroll-all-loops">, Group; +defm unsafe_loop_optimizations : BooleanFFlag<"unsafe-loop-optimizations">, + Group; defm unswitch_loops : BooleanFFlag<"unswitch-loops">, Group; - +defm use_linker_plugin : BooleanFFlag<"use-linker-plugin">, Group; +defm vect_cost_model : BooleanFFlag<"vect-cost-model">, Group; +defm variable_expansion_in_unroller : BooleanFFlag<"variable-expansion-in-unroller">, + Group; +defm web : BooleanFFlag<"web">, Group; +defm whole_program : BooleanFFlag<"whole-program">, Group; // gfortran options that we recognize in the driver and pass along when // invoking GCC to compile Fortran code. Index: test/Driver/clang_f_opts.c =================================================================== --- test/Driver/clang_f_opts.c +++ test/Driver/clang_f_opts.c @@ -166,6 +166,37 @@ // RUN: -fstrength-reduce -fno-strength-reduce \ // RUN: -finline-limit=1000 \ // RUN: -finline-limit \ +// RUN: -flto=1 \ +// RUN: -falign-labels \ +// RUN: -falign-labels=100 \ +// RUN: -falign-loops \ +// RUN: -falign-loops=100 \ +// RUN: -falign-jumps \ +// RUN: -falign-jumps=100 \ +// RUN: -fexcess-precision=100 \ +// RUN: -fbranch-count-reg \ +// RUN: -fcaller-saves \ +// RUN: -fno-default-inline \ +// RUN: -fgcse-after-reload \ +// RUN: -fgcse-las \ +// RUN: -fgcse-sm \ +// RUN: -fipa-cp \ +// RUN: -finline-functions-called-once \ +// RUN: -fmodulo-sched \ +// RUN: -fmodulo-sched-allow-regmoves \ +// RUN: -fpeel-loops \ +// RUN: -frename-registers \ +// RUN: -fschedule-insns2 \ +// RUN: -fsingle-precision-constant \ +// RUN: -ftree_loop_im \ +// RUN: -ftree_loop_ivcanon \ +// RUN: -ftree_loop_linear \ +// RUN: -funsafe-loop-optimizations \ +// RUN: -fuse-linker-plugin \ +// RUN: -fvect-cost-model \ +// RUN: -fvariable-expansion-in-unroller \ +// RUN: -fweb \ +// RUN: -fwhole-program \ // RUN: %s 2>&1 | FileCheck --check-prefix=IGNORE %s // IGNORE-NOT: error: unknown argument