From 583419839f475990a02eacfb03ebb6ae6b2c48b9 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 6 Apr 2018 19:12:04 +0200 Subject: 42602: Update _gcc as of GCC 7.3.0 for generic options and x86 --- ChangeLog | 5 + Completion/Unix/Command/_gcc | 314 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 252 insertions(+), 67 deletions(-) diff --git a/ChangeLog b/ChangeLog index db3b564f3..b7ff4cbcc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,11 @@ * github #24: Klas Mellbourn: Completion/X/Command/_code: Add completion script for Visual Studio Code +2018-04-06 Mikael Magnusson + + * 42602: Completion/Unix/Command/_gcc: Update _gcc as of GCC + 7.3.0 for generic options and x86 + 2018-04-05 Oliver Kiddle * 42591: Completion/Debian/Command/_apt: complete *.changes and diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index 415909d24..a552bb2db 100644 --- a/Completion/Unix/Command/_gcc +++ b/Completion/Unix/Command/_gcc @@ -1,4 +1,4 @@ -#compdef gcc g++ cc c++ llvm-gcc llvm-g++ clang clang++ -value-,LDFLAGS,-default- -value-,CFLAGS,-default- -value-,CXXFLAGS,-default- -value-,CPPFLAGS,-default- +#compdef gcc g++ cc c++ llvm-gcc llvm-g++ clang clang++ -value-,LDFLAGS,-default- -value-,CFLAGS,-default- -value-,CXXFLAGS,-default- -value-,CPPFLAGS,-default- -P gcc-* -P g++-* -P c++-* local curcontext="$curcontext" state line ret=1 expl args args2 march typeset -A opt_args @@ -113,6 +113,7 @@ i[3456]86|x86_64) march="native i386 i486 i586 pentium pentium-mmx pentiumpro i686 pentium2 pentium3 pentium3m pentium-m pentium4 pentium4m prescott nocona core2 corei7 corei7-avx core-avx-i core-avx2 atom k6 k6-2 k6-3 athlon athlon-tbird athlon-4 athlon-xp athlon-mp k8 opteron athlon64 athlon-fx k8-sse3 opteron-sse3 athlon64-sse3 amdfam10 barcelona bdver1 bdver2 bdver3 btver1 btver2 winchip-c6 winchip2 c3 c3-2 geode" args=( '-mtune=-[tune code for CPU type]:CPU type:('"$march"')' + #'-mtune-ctrl=-[Fine grain control of tune features]:feature-list:' #for dev use only '-march=-[generate instructions for CPU type]:CPU type:('"generic $march"')' -mthreads '-mreg-alloc=:default register allocation order:' @@ -120,6 +121,7 @@ i[3456]86|x86_64) # arguments with options '-mabi=-[Generate code that conforms to the given ABI]:abi:(ms sysv)' '-maddress-mode=-[Use given address mode]:address mode:(short long)' + '-malign-data=-[Use the given data alignment]:type:(compat abi cacheline)' '-malign-functions=-[Function starts are aligned to this power of 2]: **2 base for function alignment: ' '-malign-jumps=-[Jump targets are aligned to this power of 2]: **2 base for jump goal alignment: ' '-malign-loops=-[Loop code aligned to this power of 2]: **2 base for loop alignment: ' @@ -127,17 +129,24 @@ i[3456]86|x86_64) '-mbranch-cost=-[Branches are this expensive (1-5, arbitrary units)]:branch cost (1-5): ' '-mcmodel=-[Use given x86-64 code model]:memory model:(32 small kernel medium large)' '-mfpmath=-[Generate floating point mathematics using given instruction set]:FPU type:(387 sse sse,387 both)' + '-mfunction-return=-[Convert function return to call and return thunk]:choice:(keep thunk thunk-inline thunk-extern)' '-mincoming-stack-boundary=-[Assume incoming stack aligned to this power of 2]:assumed size of boundary: ' + '-mindirect-branch=-[Convert indirect call and jump to call and return thunks]:choice:(keep thunk thunk-inline thunk-extern)' '-mlarge-data-threshold=-[Data greater than given threshold will go into .ldata section in x86-64 medium model]:threshold: ' + '-mmem'{set,cpy}'-strategy=-[Specify memcpy expansion strategy when expected size is known]:strategy:' '-mpreferred-stack-boundary=-[Attempt to keep stack aligned to this power of 2]:size of boundary: ' + '-mrecip=-[Control generation of reciprocal estimates]::instruction:(all none div divf divd rsqrt rsqrtf rsqrtd)' #TODO comma separated and can have ! '-mregparm=-[Number of registers used to pass integer arguments]:number of integer argument registers: ' + '-mstack-protector-guard=-[Use given stack-protector guard]:guard:(global tls)' '-mstringop-strategy=-[Chose strategy to generate stringop using]:stringop strategy:(byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop)' '-mtls-dialect=-[Use given thread-local storage dialect]:TLS dialect:(gnu gnu2)' '-mveclibabi=-[Vector library ABI to use]:vector library ABI:(acml svml)' # arguments without options '-m3dnow[Support 3DNow! built-in functions]' + '-m3dnowa[Support Athlon 3Dnow! built-in functions]' '-m8bit-idiv[Expand 32bit/64bit integer divide into 8bit unsigned integer divide with run-time check]' + '-m16[Generate 16bit i386 code]' '-m32[Generate 32bit i386 code]' '-m64[Generate 64bit x86-64 code]' '-m96bit-long-double[sizeof(long double) is 12]' @@ -153,53 +162,85 @@ i[3456]86|x86_64) '-mavx2[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX and AVX2 built-in functions and code generation]' '-mavx256-split-unaligned-load[Split 32-byte AVX unaligned load]' '-mavx256-split-unaligned-store[Split 32-byte AVX unaligned store]' + '-mavx512bw[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512BW built- in functions and code generation]' + '-mavx512cd[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512CD built- in functions and code generation]' + '-mavx512dq[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512DQ built- in functions and code generation]' + '-mavx512er[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512ER built- in functions and code generation]' + '-mavx512f[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F built-in functions and code generation]' + '-mavx512ifma[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512IFMA built-in functions and code generation]' + '-mavx512pf[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512PF built- in functions and code generation]' + '-mavx512vbmi[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512VBMI built-in functions and code generation]' + '-mavx512vl[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512VL built- in functions and code generation]' + '-mavx512vpopcntdq[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AVX512F and AVX512VPOPCNTDQ built-in functions and code generation]' + '-mavx5124fmaps[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AVX512F and AVX5124FMAPS built- in functions and code generation]' + '-mavx5124vnniw[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AVX512F and AVX5124VNNIW built- in functions and code generation]' '-mavx[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 and AVX built-in functions and code generation]' '-mbionic[Use Bionic C library]' '-mbmi2[Support BMI2 built-in functions and code generation]' '-mbmi[Support BMI built-in functions and code generation]' '-mcld[Generate cld instruction in the function prologue]' + '-mclflushopt[Support CLFLUSHOPT instructions]' + '-mclwb[Support CLWB instruction]' + '-mclzero[Support CLZERO built-in functions and code generation]' '-mcrc32[Support code generation of crc32 instruction]' '-mcx16[Support code generation of cmpxchg16b instruction]' - '-mdispatch-scheduler[Do dispatch scheduling if processor is bdver1 or bdver2 or bdver3 and Haifa scheduling is selected]' + '-mdispatch-scheduler[Do dispatch scheduling if processor is bdver1, bdver2, bdver3, bdver4 or znver1 and Haifa scheduling is selected]' '-mf16c[Support F16C built-in functions and code generation]' '-mfancy-math-387[Generate sin, cos, sqrt for FPU]' '-mfentry[Emit profiling counter call at function entry before prologue]' - '-mfma4[Support FMA4 built-in functions and code generation ]' + '-mfma4[Support FMA4 built-in functions and code generation]' '-mfma[Support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX and FMA built-in functions and code generation]' '-mforce-drap[Always use Dynamic Realigned Argument Pointer (DRAP) to realign stack]' '-mfp-ret-in-387[Return values of functions in FPU registers]' '-mfsgsbase[Support FSGSBASE built-in functions and code generation]' '-mfxsr[Support FXSAVE and FXRSTOR instructions]' + '-mgeneral-regs-only[Generate code which uses only the general registers]' '-mglibc[Use GNU C library]' '-mhard-float[Use hardware fp]' '-mhle[Support Hardware Lock Elision prefixes]' + '-miamcu[Generate code that conforms to Intel MCU psABI]' '-mieee-fp[Use IEEE math for fp comparisons]' + '-mindirect-branch-register[Force indirect call and jump via register]' '-minline-all-stringops[Inline all known string operations]' '-minline-stringops-dynamically[Inline memset/memcpy string operations, but perform inline version only for small blocks]' '-mlong-double-64[Use 64-bit long double]' '-mlong-double-80[Use 80-bit long double]' - '-mlwp[Support LWP built-in functions and code generation ]' + '-mlong-double-128[Use 128-bit long double]' + '-mlwp[Support LWP built-in functions and code generation]' '-mlzcnt[Support LZCNT built-in function and code generation]' + '-mmitigate-rop[Attempt to avoid generating instruction sequences containing ret bytes]' '-mmmx[Support MMX built-in functions]' '-mmovbe[Support code generation of movbe instruction]' + '-mmpx[Support MPX code generation]' '-mms-bitfields[Use native (MS) bitfield layout]' + '-mmusl[Use musl C library]' + '-mmwaitx[Support MWAITX and MONITORX built-in functions and code generation]' + '-mno-default[Clear all tune features]' '-mno-sse4[Do not support SSE4.1 and SSE4.2 built-in functions and code generation]' + '-mnop-mcount[Generate mcount/__fentry__ calls as nops. To activate they need to be patched in]' '-momit-leaf-frame-pointer[Omit the frame pointer in leaf functions]' '-mpc32[Set 80387 floating-point precision to 32-bit]' '-mpc64[Set 80387 floating-point precision to 64-bit]' '-mpc80[Set 80387 floating-point precision to 80-bit]' '-mpclmul[Support PCLMUL built-in functions and code generation]' + '-mpku[Support PKU built-in functions and code generation]' '-mpopcnt[Support code generation of popcnt instruction]' '-mprefer-avx128[Use 128-bit AVX instructions instead of 256-bit AVX instructions in the auto-vectorizer]' + '-mprefetchwt1[Support PREFETCHWT1 built-in functions and code generation]' '-mprfchw[Support PREFETCHW instruction]' '-mpush-args[Use push instructions to save outgoing arguments]' + '-mrdpid[Support RDPID built-in functions and code generation]' '-mrdrnd[Support RDRND built-in functions and code generation]' '-mrdseed[Support RDSEED instruction]' '-mrecip[Generate reciprocals instead of divss and sqrtss]' + '-mrecord-mcount[Generate __mcount_loc section with all mcount or __fentry__ calls]' '-mred-zone[Use red-zone in the x86-64 code]' '-mrtd[Alternate calling convention]' '-mrtm[Support RTM built-in functions and code generation]' '-msahf[Support code generation of sahf instruction in 64bit x86-64 code]' + '-msgx[Support SGX built-in functions and code generation]' + '-msha[Support SHA1 and SHA256 built-in functions and code generation]' + '-mskip-rax-setup[Skip setting up RAX register when passing variable arguments]' '-msoft-float[Do not use hardware fp]' '-msse2[Support MMX, SSE and SSE2 built-in functions and code generation]' '-msse2avx[Encode SSE instructions with VEX prefix]' @@ -213,15 +254,18 @@ i[3456]86|x86_64) '-mssse3[Support MMX, SSE, SSE2, SSE3 and SSSE3 built-in functions and code generation]' '-mstack-arg-probe[Enable stack probing]' '-mstackrealign[Realign stack in prologue]' + '-mstv[Disable Scalar to Vector optimization pass transforming 64-bit integer computations into a vector ones]' '-mtbm[Support TBM built-in functions and code generation]' '-mtls-direct-seg-refs[Use direct references against %gs when accessing tls data]' '-muclibc[Use uClibc C library]' '-mvect8-ret-in-mem[Return 8-byte vectors in memory]' '-mvzeroupper[Generate vzeroupper instruction before a transfer of control flow out of the function]' '-mx32[Generate 32bit x86-64 code]' - '-mxop[Support XOP built-in functions and code generation ]' + '-mxop[Support XOP built-in functions and code generation]' '-mxsave[Support XSAVE and XRSTOR instructions]' + '-mxsavec[Support XSAVEC instructions]' '-mxsaveopt[Support XSAVEOPT instruction]' + '-mxsaves[Support XSAVES and XRSTORS instructions]' ) ;; hppa*) @@ -317,6 +361,8 @@ languages=( f77 f77-cpp-input f95 f95-cpp-input go java + brig + none ) # generic options (from --help) @@ -396,65 +442,99 @@ args+=( '-Waliasing[Warn about possible aliasing of dummy arguments]' '-Walign-commons[Warn about alignment of COMMON blocks]' '-Wall[Enable most warning messages]' + '-Walloc-zero[Warn for calls to allocation functions that specify zero bytes]' + '-Walloca[Warn on any use of alloca]' '-Wampersand[Warn about missing ampersand in continued character constants]' + '-Wargument-mismatch[Warn about type and rank mismatches between arguments and parameters]' '-Warray-bounds[Warn if an array is accessed out of bounds]' '-Warray-temporaries[Warn about creation of array temporaries]' '-Wassign-intercept[Warn whenever an Objective-C assignment is being intercepted by the garbage collector]' '-Wattributes[Warn about inappropriate attribute usage]' '-Wbad-function-cast[Warn about casting functions to incompatible types]' + '-Wbool-compare[Warn about boolean expression compared with an integer value different from true/false]' + '-Wbool-operation[Warn about certain operations on boolean expressions]' + '-Wbuiltin-declaration-mismatch[Warn when a built-in function is declared with the wrong signature]' '-Wbuiltin-macro-redefined[Warn when a built-in preprocessor macro is undefined or redefined]' '-Wc++-compat[Warn about C constructs that are not in the common subset of C and C++]' '-Wc++0x-compat[Deprecated in favor of -Wc++11-compat]' + '-Wc++1z-compat[Warn about C++ constructs whose meaning differs between ISO C++ 2014 and (forthcoming) ISO C++ 201z(7?)]' '-Wc++11-compat[Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 2011]' + '-Wc++14-compat[Warn about C++ constructs whose meaning differs between ISO C++ 2011 and ISO C++ 2014]' '-Wc-binding-type[Warn if the type of a variable might be not interoperable with C]' + '-Wc90-c99-compat[Warn about features not present in ISO C90, but present in ISO C99]' + '-Wc99-c11-compat[Warn about features not present in ISO C99, but present in ISO C11]' '-Wcast-align[Warn about pointer casts which increase alignment]' '-Wcast-qual[Warn about casts which discard qualifiers]' '-Wchar-subscripts[Warn about subscripts whose type is "char"]' '-Wcharacter-truncation[Warn about truncated character expressions]' + '-Wchkp[Warn about memory access errors found by Pointer Bounds Checker]' '-Wclobbered[Warn about variables that might be changed by "longjmp" or "vfork"]' '-Wcomment[Warn about possibly nested block comments, and C++ comments spanning more than one physical line]' '-Wcomments[Synonym for -Wcomment]' '-Wcompare-reals[Warn about equality comparisons involving REAL or COMPLEX expressions]' + '-Wconditionally-supported[Warn for conditionally-supported constructs]' '-Wconversion-extra[Warn about most implicit conversions]' '-Wconversion-null[Warn for converting NULL from/to a non-pointer type]' '-Wconversion[Warn for implicit type conversions that may change a value]' '-Wcoverage-mismatch[Warn in case profiles in -fprofile-use do not match]' '-Wcpp[Warn when a #warning directive is encountered]' '-Wctor-dtor-privacy[Warn when all constructors and destructors are private]' + '-Wdangling-else[Warn about dangling else]' + '-Wdate-time[Warn about __TIME__, __DATE__ and __TIMESTAMP__ usage]' '-Wdeclaration-after-statement[Warn when a declaration is found after a statement]' + '-Wdelete-incomplete[Warn when deleting a pointer to incomplete type]' '-Wdelete-non-virtual-dtor[Warn about deleting polymorphic objects with non- virtual destructors]' '-Wdeprecated-declarations[Warn about uses of __attribute__((deprecated)) declarations]' '-Wdeprecated[Warn if a deprecated compiler feature, class, method, or field is used]' + '-Wdesignated-init[Warn about positional initialization of structs requiring designated initializers]' '-Wdisabled-optimization[Warn when an optimization pass is disabled]' + '-Wdiscarded-array-qualifiers[Warn if qualifiers on arrays which are pointer targets are discarded]' + '-Wdiscarded-qualifiers[Warn if type qualifiers on pointers are discarded]' '-Wdiv-by-zero[Warn about compile-time integer division by zero]' '-Wdouble-promotion[Warn about implicit conversions from "float" to "double"]' '-Weffc\+\+[Warn about violations of Effective C++ style rules]' + '-Wduplicate-decl-specifier[Warn when a declaration has duplicate const, volatile, restrict or _Atomic specifier]' + '-Wduplicated-branches[Warn about duplicated branches in if-else statements]' + '-Wduplicated-cond[Warn about duplicated conditions in an if-else-if chain]' + '-Weffc++[Warn about violations of Effective C++ style rules]' '-Wempty-body[Warn about an empty body in an if or else statement]' - '-Wendif-labels[Warn about stray tokens after #elif and #endif]' + '-Wendif-labels[Warn about stray tokens after #else and #endif]' '-Wenum-compare[Warn about comparison of different enum types]' #this still exists but makes completing -Werror= less convenient - #'-Werror-implicit-function-declaration[This switch is deprecated; use -Werror=implicit-function-declaration instead]' + #'-Werror-implicit-function-declaration[This switch is deprecated; use -Werror=implicit-fun + '-Wexpansion-to-defined[Warn if "defined" is used outside #if]' '-Wextra[Print extra (possibly unwanted) warnings]' + '-Wfloat-conversion[Warn for implicit type conversions that cause loss of floating point precision]' '-Wfloat-equal[Warn if testing floating point numbers for equality]' '-Wformat-contains-nul[Warn about format strings that contain NUL bytes]' '-Wformat-extra-args[Warn if passing too many arguments to a function for its format string]' '-Wformat-nonliteral[Warn about format strings that are not literals]' + '-Wformat-overflow[Warn about function calls with format strings that write past the end of the destination region]' '-Wformat-security[Warn about possible security problems with format functions]' + '-Wformat-signedness[Warn about sign differences with format functions]' + '-Wformat-truncation[Warn about calls to snprintf and similar functions that truncate output. Same as -Wformat- truncation=1. Same as -Wformat-truncation=]' '-Wformat-y2k[Warn about strftime formats yielding 2-digit years]' '-Wformat-zero-length[Warn about zero-length formats]' '-Wformat[Warn about printf/scanf/strftime/strfmon format string anomalies]' + '-Wframe-address[Warn when __builtin_frame_address or __builtin_return_address is used unsafely]' '-Wfree-nonheap-object[Warn when attempting to free a non-heap object]' '-Wfunction-elimination[Warn about function call elimination]' + '-Whsa[Warn when a function cannot be expanded to HSAIL]' + '-Wignored-attributes[Warn whenever attributes are ignored]' '-Wignored-qualifiers[Warn whenever type qualifiers are ignored]' '-Wimplicit-function-declaration[Warn about implicit function declarations]' '-Wimplicit-int[Warn when a declaration does not specify a type]' '-Wimplicit-interface[Warn about calls with implicit interface]' '-Wimplicit-procedure[Warn about called procedures not explicitly declared]' '-Wimplicit[Warn about implicit declarations]' + '-Wincompatible-pointer-types[Warn when there is a conversion between pointers that have incompatible types]' '-Winherited-variadic-ctor[Warn about C++11 inheriting constructors when the base has a variadic constructor]' '-Winit-self[Warn about variables which are initialized to themselves]' '-Winline[Warn when an inlined function cannot be inlined]' + '-Wint-conversion[Warn about incompatible integer to pointer and pointer to integer conversions]' + '-Wint-in-bool-context[Warn for suspicious integer expressions in boolean context]' '-Wint-to-pointer-cast[Warn when there is a cast to a pointer from an integer of a different size]' + '-Winteger-division[Warn about constant integer divisions with truncated results]' '-Wintrinsic-shadow[Warn if a user-procedure has the same name as an intrinsic]' '-Wintrinsics-std[Warn on intrinsics not part of the selected standard]' '-Winvalid-memory-model[Warn when an atomic memory model parameter is known to be outside the valid range]' @@ -463,10 +543,15 @@ args+=( '-Wjump-misses-init[Warn when a jump misses a variable initialization]' '-Wline-truncation[Warn about truncated source lines]' '-Wliteral-suffix[Warn when a string or character literal is followed by a ud-suffix which does not begin with an underscore]' + '-Wlogical-not-parentheses[Warn when logical not is used on the left hand side operand of a comparison]' '-Wlogical-op[Warn when a logical operator is suspiciously always evaluating to true or false]' '-Wlong-long[Do not warn about using "long long" when -pedantic]' + '-Wlto-type-mismatch[During link time optimization warn about mismatched types of global declarations]' '-Wmain[Warn about suspicious declarations of "main"]' '-Wmaybe-uninitialized[Warn about maybe uninitialized automatic variables]' + '-Wmemset-elt-size[Warn about suspicious calls to memset where the third argument contains the number of elements not multiplied by the element size]' + '-Wmemset-transposed-args[Warn about suspicious calls to memset where the third argument is constant literal zero and the second is not]' + '-Wmisleading-indentation[Warn when the indentation of the code does not reflect the block structure]' '-Wmissing-braces[Warn about possibly missing braces around initializers]' '-Wmissing-declarations[Warn about global functions without previous declarations]' '-Wmissing-field-initializers[Warn about missing fields in struct initializers]' @@ -475,58 +560,92 @@ args+=( '-Wmissing-prototypes[Warn about global functions without prototypes]' '-Wmudflap[Warn about constructs not instrumented by -fmudflap]' '-Wmultichar[Warn about use of multi-character character constants]' + '-Wmultiple-inheritance[Warn on direct multiple inheritance]' + '-Wnamespaces[Warn on namespace definition]' '-Wnarrowing[Warn about narrowing conversions within { } that are ill-formed in C++11]' '-Wnested-externs[Warn about "extern" declarations not at file scope]' - '-Wnoexcept[Warn when a noexcept expression evaluates to false even though the expression can'\''t actually throw]' + '-Wnoexcept-type[Warn if C++1z noexcept function type will change the mangled name of a symbol]' + '-Wnoexcept[Warn when a noexcept expression evaluates to false even though the expression can''t actually throw]' '-Wnon-template-friend[Warn when non-templatized friend functions are declared within a template]' '-Wnon-virtual-dtor[Warn about non-virtual destructors]' + '-Wnonnull-compare[Warn if comparing pointer parameter with nonnull attribute with NULL]' '-Wnonnull[Warn about NULL being passed to argument slots marked as requiring non-NULL]' + '-Wnull-dereference[Warn if dereferencing a NULL pointer may lead to erroneous or undefined behavior]' + '-Wodr[Warn about some C++ One Definition Rule violations during link time optimization]' '-Wold-style-cast[Warn if a C-style cast is used in a program]' '-Wold-style-declaration[Warn for obsolescent usage in a declaration]' '-Wold-style-definition[Warn if an old-style parameter definition is used]' + '-Wopenmp-simd[Warn if a simd directive is overridden by the vectorizer cost model]' '-Woverflow[Warn about overflow in arithmetic expressions]' '-Woverlength-strings[Warn if a string is longer than the maximum portable length specified by the standard]' '-Woverloaded-virtual[Warn about overloaded virtual function names]' + '-Woverride-init-side-effects[Warn about overriding initializers with side effects]' '-Woverride-init[Warn about overriding initializers without side effects]' '-Wpacked-bitfield-compat[Warn about packed bit-fields whose offset changed in GCC 4.4]' '-Wpacked[Warn when the packed attribute has no effect on struct layout]' '-Wpadded[Warn when padding is required to align structure members]' '-Wparentheses[Warn about possibly missing parentheses]' '-Wpedantic[Issue warnings needed for strict compliance to the standard]' + '-Wplacement-new[Warn for placement new expressions with undefined behavior. Same as -Wplacement-new=]' '-Wpmf-conversions[Warn when converting the type of pointers to member functions]' '-Wpointer-arith[Warn about function pointer arithmetic]' + '-Wpointer-compare[Warn when a pointer is compared with a zero character constant]' '-Wpointer-sign[Warn when a pointer differs in signedness in an assignment]' '-Wpointer-to-int-cast[Warn when a pointer is cast to an integer of a different size]' '-Wpoison-system-directories[Warn for -I and -L options using system directories if cross compiling]' '-Wpragmas[Warn about misuses of pragmas]' '-Wproperty-assign-default[Warn if a property for an Objective-C object has no assign semantics specified]' '-Wprotocol[Warn if inherited methods are unimplemented]' - '-Wreal-q-constant[Warn about real-literal-constants with '\''q'\'' exponent-letter]' + '-Wreal-q-constant[Warn about real-literal-constants with '\'q\'' exponent-letter]' '-Wrealloc-lhs-all[Warn when a left-hand-side variable is reallocated]' '-Wrealloc-lhs[Warn when a left-hand-side array variable is reallocated]' '-Wredundant-decls[Warn about multiple declarations of the same object]' + '-Wregister[Warn about uses of register storage specifier]' '-Wreorder[Warn when the compiler reorders code]' + '-Wrestrict[Warn when an argument passed to a restrict- qualified parameter aliases with another argument]' '-Wreturn-local-addr[Warn about returning a pointer/reference to a local or temporary variable]' '-Wreturn-type[Warn whenever a function'\''s return type defaults to "int" (C), or about inconsistent return types (C++)]' + '-Wscalar-storage-order[Warn on suspicious constructs involving reverse scalar storage order]' '-Wselector[Warn if a selector has multiple methods]' '-Wsequence-point[Warn about possible violations of sequence point rules]' - '-Wshadow[Warn when one local variable shadows another]' + '-Wshadow-ivar[Warn if a local declaration hides an instance variable]' + '-Wshadow[Warn when one variable shadows another. Same as -Wshadow=global]' + '-Wshift-count-negative[Warn if shift count is negative]' + '-Wshift-count-overflow[Warn if shift count >= width of type]' + '-Wshift-negative-value[Warn if left shifting a negative value]' + '-Wshift-overflow[Warn if left shift of a signed value overflows. Same as -Wshift-overflow=]' '-Wsign-compare[Warn about signed-unsigned comparisons]' + '-Wsign-conversion[Warn for implicit type conversions between signed and unsigned integers]' '-Wsign-promo[Warn when overload promotes from unsigned to signed]' + '-Wsized-deallocation[Warn about missing sized deallocation functions]' + '-Wsizeof-array-argument[Warn when sizeof is applied on a parameter declared as an array]' + '-Wsizeof-pointer-memaccess[Warn about suspicious length parameters to certain string functions if the argument uses sizeof]' '-Wstack-protector[Warn when not issuing stack smashing protection for some reason]' + '-Wstrict-aliasing[Warn about code which might break strict aliasing rules]' '-Wstrict-null-sentinel[Warn about uncasted NULL used as sentinel]' + '-Wstrict-overflow[Warn about optimizations that assume that signed overflow is undefined]' '-Wstrict-prototypes[Warn about unprototyped function declarations]' '-Wstrict-selector-match[Warn if type signatures of candidate methods do not match exactly]' - '-Wsuggest-attribute=-[Warn about functions which might be candidates for __attribute__((const))]:const: ' + '-Wstringop-overflow[Warn about buffer overflow in string manipulation functions like memcpy and strcpy. Same as -Wstringop-overflow=]' + '-Wsubobject-linkage[Warn if a class type has a base or a field whose type uses the anonymous namespace or depends on a type with no linkage]' + '-Wsuggest-attribute=-[Warn about functions which might be candidates for __attribute__((const))]:const:(pure const noreturn format)' + '-Wsuggest-final-methods[Warn about C++ virtual methods where adding final keyword would improve code quality]' + '-Wsuggest-final-types[Warn about C++ polymorphic types where adding final keyword would improve code quality]' + '-Wsuggest-override[Suggest that the override keyword be used when the declaration of a virtual function overrides another]' '-Wsurprising[Warn about "suspicious" constructs]' + '-Wswitch-bool[Warn about switches with boolean controlling expression]' '-Wswitch-default[Warn about enumerated switches missing a "default-" statement]' '-Wswitch-enum[Warn about all enumerated switches missing a specific case]' + '-Wswitch-unreachable[Warn about statements between switch'\''s controlling expression and the first case]' '-Wswitch[Warn about enumerated switches, with no default, missing a case]' '-Wsync-nand[Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used]' '-Wsynth[Deprecated. This switch has no effect]' '-Wsystem-headers[Do not suppress warnings from system headers]' '-Wtabs[Permit nonconforming uses of the tab character]' '-Wtarget-lifetime[Warn if the pointer in a pointer assignment might outlive its target]' + '-Wtautological-compare[Warn if a comparison always evaluates to true or false]' + '-Wtemplates[Warn on primary template declaration]' + '-Wterminate[Warn if a throw expression will always result in a call to terminate()]' '-Wtraditional-conversion[Warn of prototypes causing type conversions different from what would happen in the absence of prototype]' '-Wtraditional[Warn about features not present in traditional C]' '-Wtrampolines[Warn whenever a trampoline is generated]' @@ -534,13 +653,16 @@ args+=( '-Wtype-limits[Warn if a comparison is always true or always false due to the limited range of the data type]' '-Wundeclared-selector[Warn about @selector()s without previously declared methods]' '-Wundef[Warn if an undefined macro is used in an #if directive]' + '-Wundefined-do-loop[Warn about an invalid DO loop]' '-Wunderflow[Warn about underflow of numerical constant expressions]' '-Wuninitialized[Warn about uninitialized automatic variables]' '-Wunknown-pragmas[Warn about unrecognized pragmas]' + '-Wunreachable-code[Does nothing. Preserved for backward compatibility]' '-Wunsafe-loop-optimizations[Warn if the loop cannot be optimized due to nontrivial assumptions]' '-Wunsuffixed-float-constants[Warn about unsuffixed float constants]' '-Wunused-but-set-parameter[Warn when a function parameter is only set, otherwise unused]' '-Wunused-but-set-variable[Warn when a variable is only set, otherwise unused]' + '-Wunused-const-variable[Warn when a const variable is unused. Same as -Wunused-const-variable=]' '-Wunused-dummy-argument[Warn about unused dummy arguments]' '-Wunused-function[Warn when a function is unused]' '-Wunused-label[Warn when a label is unused]' @@ -551,42 +673,62 @@ args+=( '-Wunused-value[Warn when an expression value is unused]' '-Wunused-variable[Warn when a variable is unused]' '-Wunused[Enable all -Wunused- warnings]' + '-Wuse-without-only[Warn about USE statements that have no ONLY qualifier]' '-Wuseless-cast[Warn about useless casts]' '-Wvarargs[Warn about questionable usage of the macros used to retrieve variable arguments]' '-Wvariadic-macros[Warn about using variadic macros]' '-Wvector-operation-performance[Warn when a vector operation is compiled outside the SIMD]' + '-Wvirtual-inheritance[Warn on direct virtual inheritance]' '-Wvirtual-move-assign[Warn if a virtual base has a non-trivial move assignment operator]' '-Wvla[Warn if a variable length array is used]' '-Wvolatile-register-var[Warn when a register variable is declared volatile]' - '-Wwrite-strings[In C++, nonzero means warn about deprecated conversion from string literals to '\''char *'\''. In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard]' + '-Wwrite-strings[In C++, nonzero means warn about deprecated conversion from string literals to '\''char *'\''. In C, similar warning, except that the conversion is]' '-Wzero-as-null-pointer-constant[Warn when a literal '\''0'\'' is used as null pointer]' + '-Wzerotrip[Warn about zero-trip DO loops]' '-frequire-return-statement[Functions which return values must end with return statements]' # --help=warnings,joined - '-Wlarger-than=-[Warn if an object is larger than bytes]:number: ' + '-Wabi=[Warn about things that change between the current -fabi-version and the specified version]:: ' + '-Waligned-new=[Warn even if '\'new\'' uses a class member allocation function]:none|global|all: ' + '-Walloc-size-larger-than=[Warn for calls to allocation functions that attempt to allocate objects larger than the specified number of bytes]:bytes: ' + '-Walloca-larger-than=[Warn on unbounded uses of alloca, and on bounded uses of alloca whose bound can be larger than bytes]:bytes: ' + '-Warray-bounds=[Warn if an array is accessed out of bounds]:level:(1 2)' + '-Wformat-overflow=[Warn about function calls with format strings that write past the end of the destination region]:level:(1 2)' + '-Wformat-truncation=[Warn about calls to snprintf and similar functions that truncate output]:level:(1 2)' + '-Wformat=[Warn about printf/scanf/strftime/strfmon format string anomalies]:level:(1 2)' + '-Wframe-larger-than=[Warn if a function'\''s stack frame requires more than bytes]:bytes: ' + '-Wimplicit-fallthrough=[Warn when a switch case falls through]:level:(1 2 3 4 5)' + '-Wlarger-than=[Warn if an object is larger than bytes]:bytes: ' '-Wnormalized=-[Warn about non-normalised Unicode strings]:normalization:((id\:allow\ some\ non-nfc\ characters\ that\ are\ valid\ identifiers nfc\:only\ allow\ NFC nfkc\:only\ allow\ NFKC none\:allow\ any\ normalization)): ' - '-Wstack-usage=-[Warn if stack usage might be larger than specified amount]:stack usage: ' + '-Wplacement-new=[Warn for placement new expressions with undefined behavior]:level:(1 2)' + '-Wshift-overflow=[Warn if left shift of a signed value overflows]:level:(1 2)' + '-Wstack-usage=[Warn if stack usage might be larger than specified amount]:bytes: ' '-Wstrict-aliasing=-[Warn about code which might break strict aliasing rules]:level of checking (higher is more accurate):(1 2 3)' '-Wstrict-overflow=-[Warn about optimizations that assume that signed overflow is undefined]:level of checking (higher finds more cases):(1 2 3 4 5)' -# -W options from --help=common - '-Werror=-[Treat specified warning as error (or all if none specified)]:warning:->werror' + '-Wstringop-overflow=[Under the control of Object Size type, warn about buffer overflow in string manipulation functions like memcpy and strcpy]:level:(1 2 3 4)' + '-Wunused-const-variable=[Warn when a const variable is unused]:level:(1 2)' + '-Wvla-larger-than=[Warn on unbounded uses of variable-length arrays, and on bounded uses of variable-length arrays whose bound can be larger than bytes]:bytes: ' +# -W options from --help=common,^warnings + '-Werror=-[Treat specified warning as error (or all if none specified)]::warning:->werror' '-Wfatal-errors[Exit on the first error occurred]' - '-Wframe-larger-than=-[Warn if a function'\'\''s stack frame requires more than bytes]:number: ' ) # optimizers (from --help=optimizers), except for -O args+=( # --help=optimizers,^joined '-faggressive-loop-optimizations[Aggressively optimize loops using language constraints]' - '-falign-functions=-[Align the start of functions]:function alignment' - '-falign-jumps=-[Align labels which are only reached by jumping]:jump alignment' - '-falign-labels=-[Align all labels]:label alignment' - '-falign-loops=-[Align the start of loops]:loop alignment' + '-falign-functions[Align the start of functions]' + '-falign-jumps[Align labels which are only reached by jumping]' + '-falign-labels[Align all labels]' + '-falign-loops[Align the start of loops]' + '-fassociative-math[Allow optimization for floating-point arithmetic which may change the result of the operation due to rounding]' '-fasynchronous-unwind-tables[Generate unwind tables that are exact at each instruction boundary]' + '-fauto-inc-dec[Generate auto-inc/dec instructions]' '-fbranch-count-reg[Replace add, compare, branch with branch on count register]' '-fbranch-probabilities[Use profiling information for branch probabilities]' '-fbranch-target-load-optimize2[Perform branch target load optimization after prologue / epilogue threading]' '-fbranch-target-load-optimize[Perform branch target load optimization before prologue / epilogue threading]' '-fbtr-bb-exclusive[Restrict target load migration not to re-use registers in any basic block]' '-fcaller-saves[Save registers around function calls]' + '-fcode-hoisting[Enable code hoisting]' '-fcombine-stack-adjustments[Looks for opportunities to reduce stack adjustments and stack references]' '-fcommon[Do not put uninitialized globals in the common section]' '-fcompare-elim[Perform comparison elimination after register allocation has finished]' @@ -600,7 +742,9 @@ args+=( '-fdce[Use the RTL dead code elimination pass]' '-fdefer-pop[Defer popping functions args from stack until later]' '-fdelayed-branch[Attempt to fill delay slots of branch instructions]' + '-fdelete-dead-exceptions[Delete dead instructions that may throw exceptions]' '-fdelete-null-pointer-checks[Delete useless null pointer checks]' + '-fdevirtualize-speculatively[Perform speculative devirtualization]' '-fdevirtualize[Try to convert virtual calls to direct ones]' '-fdse[Use the RTL dead store elimination pass]' '-fearly-inlining[Perform early inlining]' @@ -609,40 +753,55 @@ args+=( '-ffinite-math-only[Assume no NaNs or infinities are generated]' '-ffloat-store[Don'\''t allocate floats and doubles in extended- precision registers]' '-fforward-propagate[Perform a forward propagation pass on RTL]' + '-ffp-int-builtin-inexact[Allow built-in functions ceil, floor, round, trunc to raise "inexact" exceptions]' + '-ffunction-cse[Allow function addresses to be held in registers]' '-fgcse-after-reload[Perform global common subexpression elimination after register allocation has finished]' '-fgcse-las[Perform redundant load after store elimination in global common subexpression elimination]' '-fgcse-lm[Perform enhanced load motion during global common subexpression elimination]' '-fgcse-sm[Perform store motion after global common subexpression elimination]' '-fgcse[Perform global common subexpression elimination]' '-fgraphite-identity[Enable Graphite Identity transformation]' + '-fgraphite[Enable in and out of Graphite representation]' '-fguess-branch-probability[Enable guessing of branch probabilities]' - '-fhandle-exceptions[This switch lacks documentation]' '-fhoist-adjacent-loads[Enable hoisting adjacent loads to encourage generating conditional move instructions]' '-fif-conversion2[Perform conversion of conditional jumps to conditional execution]' '-fif-conversion[Perform conversion of conditional jumps to branchless equivalents]' + '-findirect-inlining[Perform indirect inlining]' '-finline-atomics[Inline __atomic operations when a lock free instruction sequence is available]' '-finline-functions-called-once[Integrate functions only required by their single caller]' '-finline-functions[Integrate functions not declared "inline" into their callers when profitable]' '-finline-small-functions[Integrate functions into their callers when code size is known not to grow]' '-finline[Enable inlining of function declared "inline", disabling disables all inlining]' + '-fipa-bit-cp[Perform interprocedural bitwise constant propagation]' '-fipa-cp-clone[Perform cloning to make Interprocedural constant propagation stronger]' - '-fipa-cp[Perform Interprocedural constant propagation]' + '-fipa-cp[Perform interprocedural constant propagation]' + '-fipa-icf-functions[Perform Identical Code Folding for functions]' + '-fipa-icf-variables[Perform Identical Code Folding for variables]' + '-fipa-icf[Perform Identical Code Folding for functions and read-only variables]' '-fipa-profile[Perform interprocedural profile propagation]' '-fipa-pta[Perform interprocedural points-to analysis]' '-fipa-pure-const[Discover pure and const functions]' + '-fipa-ra[Use caller save register across calls if possible]' '-fipa-reference[Discover readonly and non addressable static variables]' '-fipa-sra[Perform interprocedural reduction of aggregates]' + '-fipa-vrp[Perform IPA Value Range Propagation]' '-fira-hoist-pressure[Use IRA based register pressure calculation in RTL hoist optimizations]' + '-fira-loop-pressure[Use IRA based register pressure calculation in RTL loop optimizations]' + '-fira-share-save-slots[Share slots for saving different hard registers]' + '-fira-share-spill-slots[Share stack slots for spilled pseudo-registers]' + '-fisolate-erroneous-paths-attribute[Detect paths that trigger erroneous or undefined behavior due to a null value being used in a way forbidden by a returns_nonnull or]' + '-fisolate-erroneous-paths-dereference[Detect paths that trigger erroneous or undefined behavior due to dereferencing a null pointer. Isolate those paths from the main]' '-fivopts[Optimize induction variables on trees]' '-fjump-tables[Use jump tables for sufficiently large switch statements]' - '-floop-block[Enable Loop Blocking transformation]' - '-floop-interchange[Enable Loop Interchange transformation]' - '-floop-nest-optimize[Enable the ISL based loop nest optimizer]' + '-flifetime-dse[Tell DSE that the storage for a C++ object is dead when the constructor starts and when the destructor finishes]' + '-flive-range-shrinkage[Relief of register pressure through live range shrinkage]' + '-floop-nest-optimize[Enable the loop nest optimizer]' '-floop-parallelize-all[Mark all loops as parallel]' - '-floop-strip-mine[Enable Loop Strip Mining transformation]' + '-flra-remat[Do CFG-sensitive rematerialization in LRA]' '-fmath-errno[Set errno after built-in math functions]' '-fmerge-all-constants[Attempt to merge identical constants and constant variables]' '-fmerge-constants[Attempt to merge identical constants across compilation units]' + '-fmodulo-sched-allow-regmoves[Perform SMS based modulo scheduling with register moves allowed]' '-fmodulo-sched[Perform SMS based modulo scheduling before the first scheduling pass]' '-fmove-loop-invariants[Move loop invariant computations out of loops]' '-fno-threadsafe-statics[Do not generate thread-safe code for initializing local statics]' @@ -650,17 +809,19 @@ args+=( '-fnothrow-opt[Treat a throw() exception specification as noexcept to improve code size]' '-fomit-frame-pointer[When possible do not generate stack frames]' '-fopt-info[Enable all optimization info dumps on stderr]' - '-foptimize-register-move[Do the full register move optimization pass]' '-foptimize-sibling-calls[Optimize sibling and tail recursive calls]' '-foptimize-strlen[Enable string length optimizations on trees]' '-fpack-struct[Pack structure members together without holes]' + '-fpartial-inlining[Perform partial inlining]' '-fpeel-loops[Perform loop peeling]' '-fpeephole2[Enable an RTL peephole pass before sched2]' '-fpeephole[Enable machine specific peephole optimizations]' + '-fplt[Use PLT for PIC calls (-fno-plt- load the address from GOT at call site)]' '-fpredictive-commoning[Run predictive commoning optimization]' '-fprefetch-loop-arrays[Generate prefetch instructions, if available, for arrays in loops]' + '-fprintf-return-value[Treat known sprintf return values as constants]' + '-freciprocal-math[Same as -fassociative-math for expressions which include division]' '-freg-struct-return[Return small aggregates in registers]' - '-fregmove[Enables a register move optimization]' '-frename-registers[Perform a register renaming optimization pass]' '-freorder-blocks-and-partition[Reorder basic blocks and partition into hot and cold sections]' '-freorder-blocks[Reorder basic blocks to improve code placement]' @@ -680,7 +841,10 @@ args+=( '-fsched-spec-load-dangerous[Allow speculative motion of more loads]' '-fsched-spec-load[Allow speculative motion of some loads]' '-fsched-spec[Allow speculative motion of non-loads]' + '-fsched-stalled-insns-dep[Set dependence distance checking in premature scheduling of queued insns]' + '-fsched-stalled-insns[Allow premature scheduling of queued insns]' '-fsched2-use-superblocks[If scheduling post reload, do superblock scheduling]' + '-fschedule-fusion[Perform a target dependent instruction fusion optimization pass]' '-fschedule-insns2[Reschedule instructions after register allocation]' '-fschedule-insns[Reschedule instructions before register allocation]' '-fsection-anchors[Access data in the same section from shared anchor points]' @@ -689,29 +853,39 @@ args+=( '-fsel-sched-reschedule-pipelined[Reschedule pipelined regions without pipelining]' '-fselective-scheduling2[Run selective scheduling after reload]' '-fselective-scheduling[Schedule instructions using selective scheduling algorithm]' - '-fshort-double[Use the same size for double as for float]' '-fshort-enums[Use the narrowest integer type possible for enumeration types]' '-fshort-wchar[Force the underlying type for "wchar_t" to be "unsigned short"]' + '-fshrink-wrap-separate[Shrink-wrap parts of the prologue and epilogue separately]' '-fshrink-wrap[Emit function prologues only before parts of the function that need it, rather than at the top of the function]' '-fsignaling-nans[Disable optimizations observable by IEEE signaling NaNs]' '-fsigned-zeros[Disable floating point optimizations that ignore the IEEE signedness of zero]' '-fsingle-precision-constant[Convert floating point constants to single precision constants]' '-fsplit-ivs-in-unroller[Split lifetimes of induction variables when loops are unrolled]' + '-fsplit-loops[Perform loop splitting]' + '-fsplit-paths[Split paths leading to loop backedges]' '-fsplit-wide-types[Split wide types into independent registers]' + '-fssa-backprop[Enable backward propagation of use properties at the SSA level]' + '-fssa-phiopt[Optimize conditional patterns using SSA PHI nodes]' + '-fstack-protector-all[Use a stack protection method for every function]' + '-fstack-protector-explicit[Use stack protection method only for functions with the stack_protect attribute]' + '-fstack-protector-strong[Use a smart stack protection method for certain functions]' + '-fstack-protector[Use propolice as a stack protection method]' + '-fstdarg-opt[Optimize amount of stdarg registers saved to stack at start of function]' + '-fstore-merging[Merge adjacent stores]' '-fstrict-aliasing[Assume strict aliasing rules apply]' '-fstrict-enums[Assume that values of enumeration type are always within the minimum range of that type]' + '-fstrict-overflow[Treat signed overflow as undefined]' + '-fstrict-volatile-bitfields[Force bitfield accesses to match their type width]' '-fthread-jumps[Perform jump threading optimizations]' - '-ftoplevel-reorder[Reorder top level functions, variables, and asms]' + '-ftracer[Perform superblock formation via tail duplication]' '-ftrapping-math[Assume floating-point operations can trap]' '-ftrapv[Trap for signed overflow in addition, subtraction and multiplication]' '-ftree-bit-ccp[Enable SSA-BIT-CCP optimization on trees]' '-ftree-builtin-call-dce[Enable conditional dead code elimination for builtin calls]' '-ftree-ccp[Enable SSA-CCP optimization on trees]' '-ftree-ch[Enable loop header copying on trees]' - '-ftree-coalesce-inlined-vars[Enable coalescing of copy-related user variables that are inlined]' - '-ftree-coalesce-vars[Enable coalescing of all copy-related user variables]' + '-ftree-coalesce-vars[Enable SSA coalescing of user variables]' '-ftree-copy-prop[Enable copy propagation on trees]' - '-ftree-copyrename[Replace SSA temporaries with better names in copies]' '-ftree-cselim[Transform condition stores into unconditional ones]' '-ftree-dce[Enable SSA dead code elimination optimization on trees]' '-ftree-dominator-opts[Enable dominator optimizations]' @@ -720,11 +894,11 @@ args+=( '-ftree-fre[Enable Full Redundancy Elimination (FRE) on trees]' '-ftree-loop-distribute-patterns[Enable loop distribution for patterns transformed into a library call]' '-ftree-loop-distribution[Enable loop distribution on trees]' - '-ftree-loop-if-convert-stores[Also if-convert conditional jumps containing memory writes]' '-ftree-loop-if-convert[Convert conditional jumps in innermost loops to branchless equivalents]' '-ftree-loop-im[Enable loop invariant motion on trees]' '-ftree-loop-ivcanon[Create canonical induction variables in loops]' '-ftree-loop-optimize[Enable loop optimizations on tree level]' + '-ftree-loop-vectorize[Enable loop vectorization on trees]' '-ftree-lrs[Perform live range splitting during the SSA- >normal pass]' '-ftree-partial-pre[In SSA-PRE optimization on trees, enable partial- partial redundancy elimination]' '-ftree-phiprop[Enable hoisting loads from conditional pointers]' @@ -739,10 +913,9 @@ args+=( '-ftree-switch-conversion[Perform conversions of switch initializations]' '-ftree-tail-merge[Enable tail merging on trees]' '-ftree-ter[Replace temporary expressions in the SSA->normal pass]' - '-ftree-vect-loop-version[Enable loop versioning when doing loop vectorization on trees]' - '-ftree-vectorize[Enable loop vectorization on trees]' + '-ftree-vectorize[Enable vectorization on trees]' '-ftree-vrp[Perform Value Range Propagation on trees]' - '-funit-at-a-time[Compile whole compilation unit at a time]' + '-funconstrained-commons[Assume common declarations may be overridden with ones with a larger trailing array]' '-funroll-all-loops[Perform loop unrolling for all loops]' '-funroll-loops[Perform loop unrolling when iteration count is known]' '-funsafe-loop-optimizations[Allow loop optimizations to assume that the loops behave in normal way]' @@ -754,13 +927,23 @@ args+=( '-fvar-tracking-uninit[Perform variable tracking and also tag variables that are uninitialized]' '-fvar-tracking[Perform variable tracking]' '-fvariable-expansion-in-unroller[Apply variable expansion when loops are unrolled]' - '-fvect-cost-model[Enable use of cost model in vectorization]' '-fvpt[Use expression value profiles in optimizations]' '-fweb[Construct webs and split unrelated uses of single variable]' '-fwhole-program[Perform whole program optimizations]' '-fwrapv[Assume signed arithmetic overflow wraps around]' # --help=optimizers,joined - '-fpack-struct=-[Set initial maximum structure member alignment]:alignment: ' + '-ffp-contract=[Perform floating-point expression contraction]:style:(off on fast)' + '-fira-algorithm=[Set the used IRA algorithm]:algorithm:(cb priority)' + '-fira-region=[Set regions for IRA]:region:(one all mixed)' + '-fpack-struct=[Set initial maximum structure member alignment]:alignment (power of 2): ' + '-freorder-blocks-algorithm=[Set the used basic block reordering algorithm]:algorithm:(simple stc)' + '-fsched-stalled-insns-dep=[Set dependence distance checking in premature scheduling of queued insns]:insns:' + '-fsched-stalled-insns=[Set number of queued insns that can be prematurely scheduled]:insns:' + '-fsimd-cost-model=[Specifies the vectorization cost model for code marked with a simd directive]:model:(unlimited dynamic cheap)' + '-fstack-reuse=[Set stack reuse level for local variables]:level:(all named_vars none)' + '-ftree-parallelize-loops=[Enable automatic parallelization of loops]' + '-fvect-cost-model=[Specifies the cost model for vectorization]:model:(unlimited dynamic cheap)' + ) # More linker options, from gcc man pages @@ -773,30 +956,23 @@ args+=( '-static[On systems that support dynamic linking, this prevents linking with the shared libraries]' '-shared-libgcc[Force shared libgcc]' '-static-libgcc[Force static libgcc]' - '-symbolic[Bind references to global symbols when building a shared object.]' + '-symbolic[Bind references to global symbols when building a shared object]' '-T:linker script:_files' ) # other common options, gcc --help=warnings --help=optimizers --help=common|sed 1,/language-independent/d args+=( # | grep -v :: - '--debug[This switch lacks documentation]' - '--dump[This switch lacks documentation]' - '--dumpbase[This switch lacks documentation]' - '--dumpdir[This switch lacks documentation]' '--help[Display this information]' - '--no-warnings[This switch lacks documentation]' - '--optimize[This switch lacks documentation]' - '--output[This switch lacks documentation]' + '--no-warnings[Same as -w]' + '--optimize[Same as -O]' + '--output[Same as -o]' '--param[Set parameter to value. See manpage for a complete list of parameters]:name=value' - '--pedantic-errors[This switch lacks documentation]' - '--pedantic[This switch lacks documentation]' - '--profile[This switch lacks documentation]' - '--verbose[This switch lacks documentation]' - '--version[This switch lacks documentation]' + '--verbose[Same as -v]' + '--version[Display version information]' '-aux-info[Emit declaration information into ]:file:_files' - '-dumpbase[Set the file basename to be used for dumps]' - '-dumpdir[Set the directory name to be used for dumps]' + '-dumpbase[Set the file basename to be used for dumps]:file:_files' + '-dumpdir[Set the directory name to be used for dumps]:file:_files -/' '-fPIC[Generate position-independent code if possible (large mode)]' '-fPIE[Generate position-independent code for executables if possible (large mode)]' '-fassociative-math[Allow optimization for floating-point arithmetic which may change the result of the operation due to rounding]' @@ -806,18 +982,21 @@ args+=( '-fcall-used--[Mark as being corrupted by function calls]:register' '-fcheck-data-deps[Compare the results of several data dependence analyzers]' '-fcompare-debug-second[Run only the second compilation of -fcompare-debug]' - '-fcompare-debug=[Compile with and without e.g. -gtoggle, and compare the final-insns dump]:opts:' #TODO: complete gcc options here + '-fcompare-debug=-[Compile with and without e.g. -gtoggle, and compare the final-insns dump]:opts:' #TODO: complete gcc options here '-fdbg-cnt-list[List all available debugging counters with their limits and counts]' - '-fdbg-cnt=[,-,...) Set the debug counter limit]:counter\:limit,...: ' #TODO: gcc -fdbg-cnt-list -x c /dev/null -o /dev/null -c + '-fdbg-cnt=-[,-,...) Set the debug counter limit]:counter\:limit,...: ' #TODO: gcc -fdbg-cnt-list -x c /dev/null -o /dev/null -c '-fdebug-types-section[Output .debug_types section when using DWARF v4 debuginfo]' '-fdelete-dead-exceptions[Delete dead instructions that may throw exceptions]' + '-fdiagnostics-color=-[Colorize diagnostics]::color:(never always auto)' + '-fdiagnostics-generate-patch[Print fix-it hints to stderr in unified diff format]' + '-fdiagnostics-parseable-fixits[Print fixit hints in machine-readable form]' '-fdiagnostics-show-caret[Show the source line with a caret indicating the column]' '-fdiagnostics-show-location=-[How often to emit source location at the beginning of line-wrapped diagnostics]:source location:(once every-line)' '-fdiagnostics-show-option[Amend appropriate diagnostic messages with the command line option that controls them]' #not meant for end users - #'-fdisable--pass=[disables an optimization pass]:range1+range2: ' + #'-fdisable--pass=-[disables an optimization pass]:range1+range2: ' #'-fdisable-[disables an optimization pass]' - #'-fenable--pass=[enables an optimization pass]:range1+range2: ' + #'-fenable--pass=-[enables an optimization pass]:range1+range2: ' #'-fenable-[enables an optimization pass]' #'-fdump-[Dump various compiler internals to a file]' '-fdump-final-insns=-[Dump to filename the insns at the end of translation]:filename:_files' @@ -842,19 +1021,20 @@ args+=( '-fident[Process #ident directives]' '-findirect-inlining[Perform indirect inlining]' '-finhibit-size-directive[Do not generate .size directives]' - '-finline-limit=[Limit the size of inlined functions to ]:number: ' + '-finline-limit=-[Limit the size of inlined functions to ]:number: ' '-finstrument-functions[Instrument function entry and exit with profiling calls]' '-fira-loop-pressure[Use IRA based register pressure calculation in RTL loop optimizations]' '-fira-share-save-slots[Share slots for saving different hard registers]' '-fira-share-spill-slots[Share stack slots for spilled pseudo-registers]' - '-fira-verbose=[Control IRA'\''s level of diagnostic messages]:verbosity: ' + '-fira-verbose=-[Control IRA'\''s level of diagnostic messages]:verbosity: ' '-fkeep-inline-functions[Generate code for functions even if they are fully inlined]' '-fkeep-static-consts[Emit static const variables even if they are not used]' '-fleading-underscore[Give external symbols a leading underscore]' - '-flto-compression-level=[Use zlib compression level for IL]:compression level: ' - '-flto-partition=[Partition symbols and vars at linktime based on object files they originate from]:partitioning algorithm:(1to1 balanced max)' + '-flto-compression-level=-[Use specified zlib compression level for IL]:compression level: ' + '-flto-odr-type-merging[Merge C++ types using One Definition Rule]' + '-flto-partition=-[Partition symbols and vars at linktime based on object files they originate from]:partitioning algorithm:(1to1 balanced max one none)' '-flto-report[Report various link-time optimization statistics]' - '-flto[Enable link-time optimization]' + '-flto=-[Enable link-time optimization]::jobs:' '-fmax-errors=-[Maximum number of errors to report]:errors: ' '-fmem-report-wpa[Report on permanent memory allocation in WPA only]' '-fmem-report[Report on permanent memory allocation]' @@ -903,10 +1083,10 @@ args+=( '-ftls-model=-[Set the default thread-local storage code generation model]:TLS model:(global-dynamic local-dynamic initial-exec local-exec)' '-ftracer[Perform superblock formation via tail duplication]' '-ftree-loop-linear[Enable loop interchange transforms. Same as -floop-interchange]' - '-fuse-ld=[Use the specified linker instead of the default linker]:linker:(bfd gold)' + '-fuse-ld=-[Use the specified linker instead of the default linker]:linker:(bfd gold)' '-fuse-linker-plugin[Use linker plugin during link-time optimization]' '-fverbose-asm[Add extra commentary to assembler output]' - '-fvisibility=[Set the default symbol visibility]:visibility:(default internal hidden protected)' + '-fvisibility=-[Set the default symbol visibility]:visibility:(default internal hidden protected)' '-fzero-initialized-in-bss[Put zero initialized data in the bss section]' '-gno-pubnames[Don'\''t generate DWARF pubnames and pubtypes sections]' '-gno-record-gcc-switches[Don'\''t record gcc command line switches in DWARF DW_AT_producer]' @@ -919,7 +1099,7 @@ args+=( '-gtoggle[Toggle debug information generation]' '-gvms[Generate debug information in VMS format]' '-imultiarch[Set to be the multiarch include subdirectory]:directory:_files -/' #XXX not in manpage - '-iplugindir=[Set to be the default plugin directory]:directory:_files -/' + '-iplugindir=-[Set to be the default plugin directory]:directory:_files -/' '(-pg)-p[Enable function profiling for prof]' '(-p)-pg[Enable function profiling for gprof]' '-pedantic-errors[Like -pedantic but issue them as errors]' -- cgit 1.4.1