diff options
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 66 |
1 files changed, 43 insertions, 23 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index d10a6b7..bf38f60 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -53,12 +53,6 @@ bool in_lto_p = false Variable enum incremental_link flag_incremental_link = INCREMENTAL_LINK_NONE -; 0 means straightforward implementation of complex divide acceptable. -; 1 means wide ranges of inputs must work for complex divide. -; 2 means C99-like requirements for complex multiply and divide. -Variable -int flag_complex_method = 1 - Variable int flag_default_complex_method = 1 @@ -551,6 +545,10 @@ Warray-bounds= Common Joined RejectNegative UInteger Var(warn_array_bounds) Warning IntegerRange(0, 2) Warn if an array is accessed out of bounds. +Wauto-profile +Common Var(warn_auto_profile) Warning +Warn about problems with auto-profile data. + Wuse-after-free Common Var(warn_use_after_free) Warning Warn for uses of pointers to deallocated storage. @@ -853,11 +851,17 @@ Common Var(warn_unused) Init(0) Warning Enable all -Wunused- warnings. Wunused-but-set-parameter -Common Var(warn_unused_but_set_parameter) Warning EnabledBy(Wunused && Wextra) +Common Alias(Wunused-but-set-parameter=,3,0) Warning + +Wunused-but-set-parameter= +Common Var(warn_unused_but_set_parameter) RejectNegative Joined UInteger Warning IntegerRange(0, 3) EnabledBy(Wunused && Wextra) Warn when a function parameter is only set, otherwise unused. Wunused-but-set-variable -Common Var(warn_unused_but_set_variable) Warning EnabledBy(Wunused) +Common Alias(Wunused-but-set-variable=,3,0) Warning + +Wunused-but-set-variable= +Common Var(warn_unused_but_set_variable) RejectNegative Joined UInteger Warning IntegerRange(0, 3) EnabledBy(Wunused) Warn when a variable is only set, otherwise unused. Wunused-function @@ -1061,7 +1065,10 @@ Driver Undocumented ; 20: Fix mangling of lambdas in static data member initializers. ; Default in G++ 15. ; -; 21: +; 21: Fix noexcept lambda capture pruning. +; Fix C++20 layout of base with all explicitly defaulted constructors. +; Fix mangling of class and array objects with implicitly +; zero-initialized non-trailing subojects. ; Default in G++ 16. ; ; Additional positive integers will be assigned as new versions of @@ -1192,6 +1199,10 @@ Common Joined RejectNegative Var(auto_profile_file) Use sample profile information for call graph node weights. The profile file is specified in the argument. +fauto-profile-inlining +Common Var(flag_auto_profile_inlining) Init(1) Optimization +Perform inlining using auto-profile. + ; -fcheck-bounds causes gcc to generate array bounds checks. ; For C, C++ and ObjC: defaults off. ; For Java: defaults to on. @@ -1315,12 +1326,30 @@ fcse-skip-blocks Common Ignore Does nothing. Preserved for backward compatibility. +fcx-method= +Common Joined RejectNegative Enum(complex_method) Var(flag_complex_method) Optimization SetByCombined + +Enum +Name(complex_method) Type(int) + +; straightforward implementation of complex divide acceptable. +EnumValue +Enum(complex_method) String(limited-range) Value(0) + +; wide ranges of inputs must work for complex divide. +EnumValue +Enum(complex_method) String(fortran) Value(1) + +; C99-like requirements for complex multiply and divide. +EnumValue +Enum(complex_method) String(stdc) Value(2) + fcx-limited-range -Common Var(flag_cx_limited_range) Optimization SetByCombined +Common Alias(fcx-method=,limited-range,stdc) Omit range reduction step when performing complex division. fcx-fortran-rules -Common Var(flag_cx_fortran_rules) Optimization +Common Alias(fcx-method=,fortran,stdc) Complex multiplication and division follow Fortran rules. fdata-sections @@ -1420,7 +1449,7 @@ Driver Common Joined RejectNegative Var(flag_diagnostics_show_color) Enum(diagno ; Required for these enum values. SourceInclude -diagnostic-color.h +diagnostics/color.h Enum Name(diagnostic_color_rule) Type(int) @@ -1444,7 +1473,7 @@ Driver Common Joined RejectNegative Var(flag_diagnostics_show_urls) Enum(diagnos ; Required for these enum values. SourceInclude -diagnostic-url.h +diagnostics/url.h Enum Name(diagnostic_url_rule) Type(int) @@ -1468,7 +1497,7 @@ Common Joined RejectNegative UInteger fdiagnostics-format= Common Joined RejectNegative Enum(diagnostics_output_format) --fdiagnostics-format=[text|sarif-stderr|sarif-file|json|json-stderr|json-file] Select output format. +-fdiagnostics-format=[text|sarif-stderr|sarif-file] Select output format. fdiagnostics-add-output= Common Joined RejectNegative @@ -1511,15 +1540,6 @@ EnumValue Enum(diagnostics_output_format) String(text) Value(DIAGNOSTICS_OUTPUT_FORMAT_TEXT) EnumValue -Enum(diagnostics_output_format) String(json) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON_STDERR) - -EnumValue -Enum(diagnostics_output_format) String(json-stderr) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON_STDERR) - -EnumValue -Enum(diagnostics_output_format) String(json-file) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON_FILE) - -EnumValue Enum(diagnostics_output_format) String(sarif-stderr) Value(DIAGNOSTICS_OUTPUT_FORMAT_SARIF_STDERR) EnumValue |