Mercurial > hg > CbC > CbC_gcc
diff gcc/common.opt @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/common.opt Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/common.opt Thu Feb 13 11:34:05 2020 +0900 @@ -1,6 +1,6 @@ ; Options for the language- and target-independent parts of the compiler. -; Copyright (C) 2003-2018 Free Software Foundation, Inc. +; Copyright (C) 2003-2020 Free Software Foundation, Inc. ; ; This file is part of GCC. ; @@ -63,9 +63,6 @@ Variable bool flag_warn_unused_result = false -Variable -int *param_values - ; Nonzero if we should write GIMPLE bytecode for link-time optimization. Variable int flag_generate_lto @@ -437,13 +434,6 @@ fversion Common Driver Alias(-version) --param -Common Separate ---param <param>=<value> Set parameter <param> to value. See below for a complete list of parameters. - --param= -Common Joined Alias(-param) - -sysroot Driver Separate Alias(-sysroot=) @@ -551,8 +541,12 @@ Warn about inappropriate attribute usage. Wattribute-alias -Common Var(warn_attributes) Init(1) Warning -Warn about type safety and similar errors in attribute alias and related. +Common Alias(Wattribute_alias=, 1, 0) Warning +Warn about type safety and similar errors and mismatches in declarations with alias attributes. + +Wattribute-alias= +Common Joined RejectNegative UInteger Var(warn_attribute_alias) Init(1) Warning IntegerRange(0, 2) +Warn about type safety and similar errors and mismatches in declarations with alias attributes. Wcannot-profile Common Var(warn_cannot_profile) Init(1) Warning @@ -571,6 +565,14 @@ Common Var(warn_cpp) Init(1) Warning Warn when a #warning directive is encountered. +Wattribute-warning +Common Var(warn_attribute_warning) Init(1) Warning +Warn about uses of __attribute__((warning)) declarations. + +Wdeprecated +Common Var(warn_deprecated) Init(1) Warning +Warn if a deprecated compiler feature, class, method, or field is used. + Wdeprecated-declarations Common Var(warn_deprecated_decl) Init(1) Warning Warn about uses of __attribute__((deprecated)) declarations. @@ -615,7 +617,7 @@ Warn when a switch case falls through. Winline -Common Var(warn_inline) Warning +Common Var(warn_inline) Warning Optimization Warn when an inlined function cannot be inlined. Winvalid-memory-model @@ -939,6 +941,8 @@ ; 13: Fixes the accidental change in 12 to the calling convention for classes ; with deleted copy constructor and trivial move constructor. ; Default in G++ 8.2. +; 14: Corrects the mangling of nullptr expression. +; Default in G++ 10. ; ; Additional positive integers will be assigned as new versions of ; the ABI become the default version of the ABI. @@ -981,6 +985,14 @@ falign-loops= Common RejectNegative Joined Var(str_align_loops) Optimization +fallow-store-data-races +Common Report Var(flag_store_data_races) Optimization +Allow the compiler to introduce new data races on stores. + +fanalyzer +Common Var(flag_analyzer) +Enable static analysis pass. + fargument-alias Common Ignore Does nothing. Preserved for backward compatibility. @@ -1064,16 +1076,24 @@ Use profiling information for branch probabilities. fbranch-target-load-optimize -Common Report Var(flag_branch_target_load_optimize) Optimization -Perform branch target load optimization before prologue / epilogue threading. +Common Ignore +Does nothing. Preserved for backward compatibility. fbranch-target-load-optimize2 -Common Report Var(flag_branch_target_load_optimize2) Optimization -Perform branch target load optimization after prologue / epilogue threading. +Common Ignore +Does nothing. Preserved for backward compatibility. fbtr-bb-exclusive -Common Report Var(flag_btr_bb_exclusive) Optimization -Restrict target load migration not to re-use registers in any basic block. +Common Ignore +Does nothing. Preserved for backward compatibility. + +fcallgraph-info +Common Report RejectNegative Var(flag_callgraph_info) Init(NO_CALLGRAPH_INFO); +Output callgraph information on a per-file basis. + +fcallgraph-info= +Common Report RejectNegative Joined +Output callgraph information on a per-file basis with decorations. fcall-saved- Common Joined RejectNegative Var(common_deferred_options) Defer @@ -1115,8 +1135,8 @@ Looks for opportunities to reduce stack adjustments and stack references. fcommon -Common Report Var(flag_no_common,0) -Do not put uninitialized globals in the common section. +Common Report Var(flag_no_common,0) Init(1) +Put uninitialized globals in the common section. fcompare-debug Driver @@ -1172,7 +1192,7 @@ fdbg-cnt= Common RejectNegative Joined Var(common_deferred_options) Defer --fdbg-cnt=<counter>[:<lower_limit>]:<upper_limit>[,<counter>:...] Set the debug counter limit. +-fdbg-cnt=<counter>[:<lower_limit1>-]<upper_limit1>[:<lower_limit2>-<upper_limit2>:...][,<counter>:...] Set the debug counter limit. fdebug-prefix-map= Common Joined RejectNegative Var(common_deferred_options) Defer @@ -1239,11 +1259,11 @@ fdiagnostics-show-labels Common Var(flag_diagnostics_show_labels) Init(1) -Show labels annotating ranges of source code when showing source +Show labels annotating ranges of source code when showing source. fdiagnostics-show-line-numbers Common Var(flag_diagnostics_show_line_numbers) Init(1) -Show line numbers in the left margin when showing source +Show line numbers in the left margin when showing source. fdiagnostics-color Common Alias(fdiagnostics-color=,always,never) @@ -1269,6 +1289,43 @@ EnumValue Enum(diagnostic_color_rule) String(auto) Value(DIAGNOSTICS_COLOR_AUTO) +fdiagnostics-urls= +Driver Common Joined RejectNegative Var(flag_diagnostics_show_urls) Enum(diagnostic_url_rule) Init(DIAGNOSTICS_URL_AUTO) +-fdiagnostics-urls=[never|always|auto] Embed URLs in diagnostics. + +; Required for these enum values. +SourceInclude +diagnostic-url.h + +Enum +Name(diagnostic_url_rule) Type(int) + +EnumValue +Enum(diagnostic_url_rule) String(never) Value(DIAGNOSTICS_URL_NO) + +EnumValue +Enum(diagnostic_url_rule) String(always) Value(DIAGNOSTICS_URL_YES) + +EnumValue +Enum(diagnostic_url_rule) String(auto) Value(DIAGNOSTICS_URL_AUTO) + +fdiagnostics-format= +Common Joined RejectNegative Enum(diagnostics_output_format) +-fdiagnostics-format=[text|json] Select output format. + +; Required for these enum values. +SourceInclude +diagnostic.h + +Enum +Name(diagnostics_output_format) Type(int) + +EnumValue +Enum(diagnostics_output_format) String(text) Value(DIAGNOSTICS_OUTPUT_FORMAT_TEXT) + +EnumValue +Enum(diagnostics_output_format) String(json) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON) + fdiagnostics-parseable-fixits Common Var(flag_diagnostics_parseable_fixits) Print fix-it hints in machine-readable form. @@ -1281,9 +1338,33 @@ Common Var(flag_diagnostics_show_option) Init(1) Amend appropriate diagnostic messages with the command line option that controls them. +fdiagnostics-show-cwe +Common Var(flag_diagnostics_show_cwe) Init(1) +Print CWE identifiers for diagnostic messages, where available. + +fdiagnostics-path-format= +Common Joined RejectNegative Var(flag_diagnostics_path_format) Enum(diagnostic_path_format) Init(DPF_INLINE_EVENTS) +Specify how to print any control-flow path associated with a diagnostic. + +Enum +Name(diagnostic_path_format) Type(int) + +EnumValue +Enum(diagnostic_path_format) String(none) Value(DPF_NONE) + +EnumValue +Enum(diagnostic_path_format) String(separate-events) Value(DPF_SEPARATE_EVENTS) + +EnumValue +Enum(diagnostic_path_format) String(inline-events) Value(DPF_INLINE_EVENTS) + +fdiagnostics-show-path-depths +Common Var(flag_diagnostics_show_path_depths) Init(0) +Show stack depths of events in paths. + fdiagnostics-minimum-margin-width= Common Joined UInteger Var(diagnostics_minimum_margin_width) Init(6) -Set minimum width of left margin of source code when showing source +Set minimum width of left margin of source code when showing source. fdisable- Common Joined RejectNegative Var(common_deferred_options) Defer @@ -1350,7 +1431,7 @@ Perform interprocedural reduction of aggregates. feliminate-unused-debug-symbols -Common Report Var(flag_debug_only_used_symbols) +Common Report Var(flag_debug_only_used_symbols) Init(1) Perform unused symbol elimination in debug info. feliminate-unused-debug-types @@ -1370,7 +1451,7 @@ Perform a number of minor, expensive optimizations. fexcess-precision= -Common Joined RejectNegative Enum(excess_precision) Var(flag_excess_precision_cmdline) Init(EXCESS_PRECISION_DEFAULT) SetByCombined +Common Joined RejectNegative Enum(excess_precision) Var(flag_excess_precision) Init(EXCESS_PRECISION_DEFAULT) Optimization SetByCombined -fexcess-precision=[fast|standard] Specify handling of excess floating-point precision. Enum @@ -1408,6 +1489,10 @@ Common Report Var(flag_finite_math_only) Optimization SetByCombined Assume no NaNs or infinities are generated. +ffinite-loops +Common Report Var(flag_finite_loops) Optimization +Assume that loops with an exit will terminate and not loop indefinitely. + ffixed- Common Joined RejectNegative Var(common_deferred_options) Defer -ffixed-<register> Mark <register> as being unavailable to the compiler. @@ -1492,7 +1577,7 @@ fgnat-encodings= Common Enum(dwarf_gnat_encodings) Joined RejectNegative Report Undocumented Var(gnat_encodings) --fgnat-encodings=[all|gdb|minimal] Select the balance between GNAT encodings and standard DWARF emitted in the debug information +-fgnat-encodings=[all|gdb|minimal] Select the balance between GNAT encodings and standard DWARF emitted in the debug information. ; This option is not documented yet as its semantics will change. fgraphite @@ -1718,7 +1803,15 @@ fipa-reference Common Report Var(flag_ipa_reference) Init(0) Optimization -Discover readonly and non addressable static variables. +Discover read-only and non addressable static variables. + +fipa-reference-addressable +Common Report Var(flag_ipa_reference_addressable) Init(0) Optimization +Discover read-only, write-only and non-addressable static variables. + +fipa-stack-alignment +Common Report Var(flag_ipa_stack_alignment) Init(1) Optimization +Reduce stack alignment on call sites if possible. fipa-matrix-reorg Common Ignore @@ -1847,12 +1940,12 @@ ; The initial value of -1 comes from Z_DEFAULT_COMPRESSION in zlib.h. flto-compression-level= -Common Joined RejectNegative UInteger Var(flag_lto_compression_level) Init(-1) IntegerRange(0, 9) --flto-compression-level=<number> Use zlib compression level <number> for IL. +Common Joined RejectNegative UInteger Var(flag_lto_compression_level) Init(-1) IntegerRange(0, 19) +-flto-compression-level=<number> Use zlib/zstd compression level <number> for IL. flto-odr-type-merging -Common Report Var(flag_lto_odr_type_mering) Init(1) -Merge C++ types using One Definition Rule. +Common Ignore +Does nothing. Preserved for backward compatibility. flto-report Common Report Var(flag_lto_report) Init(0) @@ -1914,7 +2007,7 @@ Use the RTL dead code elimination pass. fdse -Common Var(flag_dse) Init(1) Optimization +Common Var(flag_dse) Init(0) Optimization Use the RTL dead store elimination pass. freschedule-modulo-scheduled-loops @@ -2055,6 +2148,10 @@ Set the top-level directory for storing the profile data. The default is 'pwd'. +fprofile-note= +Common Joined RejectNegative Var(profile_note_location) +Select the name for storing the profile note file. + fprofile-correction Common Report Var(flag_profile_correction) Enable correction of flow inconsistent profile data input. @@ -2063,6 +2160,14 @@ Common Joined RejectNegative Enum(profile_update) Var(flag_profile_update) Init(PROFILE_UPDATE_SINGLE) -fprofile-update=[single|atomic|prefer-atomic] Set the profile update method. +fprofile-filter-files= +Common Joined RejectNegative Var(flag_profile_filter_files) +Instrument only functions from files where names match any regular expression (separated by a semi-colon). + +fprofile-exclude-files= +Common Joined RejectNegative Var(flag_profile_exclude_files) +Instrument only functions from files where names do not match all the regular expressions (separated by a semi-colon). + Enum Name(profile_update) Type(enum profile_update) UnknownError(unknown profile update method %qs) @@ -2083,6 +2188,10 @@ Common Joined RejectNegative Enable common options for generating profile info for profile feedback directed optimizations, and set -fprofile-dir=. +fprofile-partial-training +Common Report Var(flag_profile_partial_training) Optimization +Do not assume that functions never executed during the train run are cold. + fprofile-use Common Var(flag_profile_use) Enable common options for performing profile feedback directed optimizations. @@ -2100,7 +2209,7 @@ Report on consistency of profile. fprofile-reorder-functions -Common Report Var(flag_profile_reorder_functions) +Common Report Var(flag_profile_reorder_functions) Optimization Enable function reordering that improves code placement. fpatchable-function-entry= @@ -2140,6 +2249,28 @@ flifetime-dse= Common Joined RejectNegative UInteger Var(flag_lifetime_dse) Optimization IntegerRange(0, 2) +flive-patching +Common RejectNegative Alias(flive-patching=,inline-clone) Optimization + +flive-patching= +Common Report Joined RejectNegative Enum(live_patching_level) Var(flag_live_patching) Init(LIVE_PATCHING_NONE) Optimization +-flive-patching=[inline-only-static|inline-clone] Control IPA +optimizations to provide a safe compilation for live-patching. At the same +time, provides multiple-level control on the enabled IPA optimizations. + +Enum +Name(live_patching_level) Type(enum live_patching_level) UnknownError(unknown Live-Patching Level %qs) + +EnumValue +Enum(live_patching_level) String(inline-only-static) Value(LIVE_PATCHING_INLINE_ONLY_STATIC) + +EnumValue +Enum(live_patching_level) String(inline-clone) Value(LIVE_PATCHING_INLINE_CLONE) + +fallocation-dce +Common Report Var(flag_allocation_dce) Init(1) Optimization +Tell DCE to remove unused C++ allocations. + flive-range-shrinkage Common Report Var(flag_live_range_shrinkage) Init(0) Optimization Relief of register pressure through live range shrinkage. @@ -2319,7 +2450,7 @@ Does nothing. Preserved for backward compatibility. free -Common Report Var(flag_ree) Init(0) +Common Report Var(flag_ree) Init(0) Optimization Turn on Redundant Extensions Elimination pass. fshow-column @@ -2359,6 +2490,10 @@ Common Report Var(flag_split_wide_types) Optimization Split wide types into independent registers. +fsplit-wide-types-early +Common Report Var(flag_split_wide_types_early) Optimization +Split wide types into independent registers earlier. + fssa-backprop Common Report Var(flag_ssa_backprop) Init(1) Optimization Enable backward propagation of use properties at the SSA level. @@ -2479,7 +2614,7 @@ Enum(tls_model) String(local-exec) Value(TLS_MODEL_LOCAL_EXEC) ftoplevel-reorder -Common Report Var(flag_toplevel_reorder) Init(2) +Common Report Var(flag_toplevel_reorder) Init(2) Optimization Reorder top level functions, variables, and asms. ftracer @@ -2716,6 +2851,10 @@ Common Report Var(flag_split_loops) Optimization Perform loop splitting. +fversion-loops-for-strides +Common Report Var(flag_version_loops_for_strides) Optimization +Version loops based on whether indices have a stride of one. + funwind-tables Common Report Var(flag_unwind_tables) Optimization Just generate unwind tables for exception handling. @@ -2728,6 +2867,10 @@ Common Driver Negative(fuse-ld=bfd) Use the gold linker instead of the default linker. +fuse-ld=lld +Common Driver Negative(fuse-ld=lld) +Use the lld LLVM linker instead of the default linker. + fuse-linker-plugin Common Undocumented Var(flag_use_linker_plugin) @@ -2898,26 +3041,26 @@ gas-loc-support Common Driver Var(dwarf2out_as_loc_support) Init(2) -Assume assembler support for (DWARF2+) .loc directives +Assume assembler support for (DWARF2+) .loc directives. gas-locview-support Common Driver Var(dwarf2out_as_locview_support) Init(2) -Assume assembler support for view in (DWARF2+) .loc directives +Assume assembler support for view in (DWARF2+) .loc directives. gcoff -Common Driver Deprecated +Common Driver WarnRemoved Does nothing. Preserved for backward compatibility. gcoff1 -Common Driver Deprecated +Common Driver WarnRemoved Does nothing. Preserved for backward compatibility. gcoff2 -Common Driver Deprecated +Common Driver WarnRemoved Does nothing. Preserved for backward compatibility. gcoff3 -Common Driver Deprecated +Common Driver WarnRemoved Does nothing. Preserved for backward compatibility. gcolumn-info @@ -2938,11 +3081,11 @@ ginline-points Common Driver Var(debug_inline_points) Init(2) -Generate extended entry point information for inlined functions +Generate extended entry point information for inlined functions. ginternal-reset-location-views Common Driver Var(debug_internal_reset_location_views) Init(2) -Compute locview reset points based on insn length estimates +Compute locview reset points based on insn length estimates. gno- RejectNegative Joined Undocumented