PATCH: _gcc: fix some funny autogenerated artifacts and other typos

Mikael Magnusson <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
---
 Completion/Unix/Command/_gcc | 82 ++++++++++++++++--------------------
 1 file changed, 36 insertions(+), 46 deletions(-)

diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index d81f31cf5d..03c3eb2f28 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -158,7 +158,7 @@ mips*)
     '-mginv[ginv]'
     '-mgpopt[use GP relative accesses for symbols known to be in a small data section]'
     '-mindirect-jump=[change indirect jump instructions to inhibit speculation]:arg'
-    '-mips16[ips16]'
+    '-mips16[mips16]'
     '-mldc1-sdc1[ldc1 sdc1]'
     '-mlocal-sdata[extend the -G behaviour to object local data]'
     '-mmadd4[enable the generation of 4-operand madd.s, madd.d, etc]'
@@ -212,20 +212,20 @@ i[3456]86|x86_64)
     '-mavx256-split-unaligned-load[split 32-byte AVX unaligned load]'
     '-mavx256-split-unaligned-store[split 32-byte AVX unaligned store]'
     '-mavx2[support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX and AVX2 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]'
+    '-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]'
     '-mavx512bf16[avx512bf16]'
     '-mavx512bitalg[avx512bitalg]'
-    '-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]'
+    '-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]'
+    '-mavx512pf[support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512PF built-in functions and code generation]'
     '-mavx512vbmi2[avx512vbmi2]'
     '-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]'
+    '-mavx512vl[support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2 and AVX512F and AVX512VL built-in functions and code generation]'
     '-mavx512vnni[avx512vnni]'
     '-mavx512vp2intersect[avx512vp2intersect]'
     '-mavx512vpopcntdq[support MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AVX512F and AVX512VPOPCNTDQ built-in functions and code generation]'
@@ -469,7 +469,7 @@ webassembly*)
     '-mexception-handling[exception handling]'
     '-mmultivalue[multivalue]'
     '-mmutable-globals[mutable globals]'
-    '-mnontrapping-fptoint[no ntrapping fptoint]'
+    '-mnontrapping-fptoint[nontrapping float-to-int conversion]'
     '-mreference-types[reference types]'
     '-msign-ext[sign ext]'
     '-msimd128[simd128]'
@@ -528,11 +528,11 @@ if [[ "$service" = clang* ]]; then
     '-cpp[cpp]'
     '--cuda-compile-host-device[compile CUDA code for both host and device]'
     '--cuda-device-only[compile CUDA code for device only]'
-    '--cuda-gpu-arch=[cUDA offloading device architecture]:arg'
+    '--cuda-gpu-arch=[CUDA offloading device architecture]:arg'
     '--cuda-host-only[compile CUDA code for host only]'
     '*--cuda-include-ptx=[include ptx for the following gpu architecture]:argument'
     '--cuda-noopt-device-debug[enable device-side debug info generation]'
-    '--cuda-path=[cUDA installation path]:arg'
+    '--cuda-path=[CUDA installation path]:arg'
     '--cuda-path-ignore-env[ignore environment variables to detect CUDA installation]'
     '-cuid=[an id for compilation unit]:argument'
     '-current_version[current version]:current version'
@@ -577,9 +577,9 @@ if [[ "$service" = clang* ]]; then
     '-fapplication-extension[restrict code to those available for App Extensions]'
     '-fasm-blocks[asm blocks]'
     '-fassume-sane-operator-new[assume sane operator new]'
-    '-fast[ast]'
-    '-fastcp[astcp]'
-    '-fastf[astf]'
+    '-fast[fast]'
+    '-fastcp[fastcp]'
+    '-fastf[fastf]'
     '-fautolink[autolink]'
     '-fautomatic[automatic]'
     '-fauto-profile-accurate[auto profile accurate]'
@@ -654,7 +654,7 @@ if [[ "$service" = clang* ]]; then
     '-fdenormal-fp-math=[denormal fp math]:arg'
     '-fdepfile-entry=[depfile entry]:arg'
     '-fdiagnostics-absolute-paths[print absolute paths in diagnostics]'
-    '-fdiagnostics-fixit-info[supply fixit into with diagnostic messages]'
+    '-fdiagnostics-fixit-info[supply fixit info with diagnostic messages]'
     '-fdiagnostics-format=[diagnostics format]:arg'
     '-fdiagnostics-hotness-threshold=[prevent optimization remarks from being output if they do not meet threshold]:value'
     '-fdiagnostics-parseable-fixits[print fixits in a machine parseable form]'
@@ -721,12 +721,12 @@ if [[ "$service" = clang* ]]; then
     '-fgpu-rdc[generate relocatable device code, also known as separate compilation mode]'
     '-fgpu-sanitize[enable sanitizer for AMDGPU target]'
     '-fheinous-gnu-extensions[heinous GNU extensions]'
-    '-fhip-new-launch-api,[-fno-hip-new-launch-api Use new kernel launching API for HIP]'
+    '-fhip-new-launch-api[Use new kernel launching API for HIP]'
     '-fhonor-infinites[honor infinites]'
     '-fhonor-infinities[honor infinities]'
     '-fhonor-nans[honor nans]'
     '-fignore-exceptions[enable support for ignoring exception handling constructs]'
-    '-filelist[ilelist]:arg'
+    '-filelist[filelist]:arg'
     '-fimplicit-module-maps[implicit module maps]'
     '-fimplicit-modules[implicit modules]'
     '-fimplicit-none[no implicit typing allowed unless overridden by IMPLICIT statements]'
@@ -931,7 +931,6 @@ if [[ "$service" = clang* ]]; then
     '-fsymbol-partition=[symbol partition]:arg'
     '-fsystem-module[build this module as a system module. only used with -emit-module]'
     '-ftemplate-backtrace-limit=[template backtrace limit]:arg'
-    '-ftemplate-depth--[template depth]:arg'
     '-ftemplate-depth=[template depth]:arg'
     '-fterminated-vtables[terminated vtables]'
     '-fthin-link-bitcode=[write minimized bitcode to <file>]:file:_files'
@@ -1016,7 +1015,7 @@ if [[ "$service" = clang* ]]; then
     '-headerpad_max_install_names[headerpad max install names]:argument'
     '-help[display this information]'
     '--help-hidden[display help for hidden options]'
-    '--hip-device-lib=[hIP device library]:arg'
+    '--hip-device-lib=[HIP device library]:arg'
     '--hip-device-lib-path=[hip device lib path]:arg'
     '--hip-link[link clang-offload-bundler bundles for HIP]'
     '--hip-version=[HIP version in the format of major.minor.patch]'
@@ -1089,7 +1088,7 @@ if [[ "$service" = clang* ]]; then
     '-mmacosx-version-min=[macosx version min]:arg'
     '-mmcu=[mcu]:arg'
     '-module-dependency-dir[directory to dump module dependencies to]:arg'
-    '-module-dir[odule dir]:dir'
+    '-module-dir[module dir]:dir'
     '-module-file-info[provide information about a particular module file]'
     '-moslib=[oslib]:arg'
     '-moutline-atomics[generate local calls to out-of-line atomic operations]'
@@ -1225,13 +1224,13 @@ if [[ "$service" = clang* ]]; then
     '--resource=[resource]:arg'
     '-rewrite-legacy-objc[rewrite Legacy Objective-C source to C++]'
     '-rewrite-objc[rewrite Objective-C source to C++]'
-    '--rocm-device-lib-path=[rOCm device library path]:arg'
-    '--rocm-path=[rOCm installation path]:arg'
+    '--rocm-device-lib-path=[ROCm device library path]:arg'
+    '--rocm-path=[ROCm installation path]:arg'
     '-Rpass-analysis=[report transformation analysis from optimization passes]:regex'
     '-Rpass-missed=[report missed transformations by optimization passes]:arg'
     '-Rpass=[report transformations performed by optimization passes]:arg'
     '-rpath[rpath]:arg'
-    '-r[product a relocatable object as output]'
+    '-r[produce a relocatable object as output]'
     '--rtlib=[compiler runtime library to use]:arg'
     '-rtlib=[rtlib]:arg'
     '--save-stats=[save llvm statistics]:arg'
@@ -1247,7 +1246,6 @@ if [[ "$service" = clang* ]]; then
     '-seglinkedit[seglinkedit]'
     '-segprot[segprot]:arg'
     '-segs_read_only_addr[segs read only addr]:arg'
-    '-segs_read_[segs read]:arg'
     '-segs_read_write_addr[segs read write addr]:arg'
     '--serialize-diagnostics[serialize compiler diagnostics to a file]:arg'
     '-serialize-diagnostics[serialize diagnostics]:arg'
@@ -1302,9 +1300,9 @@ if [[ "$service" = clang* ]]; then
     '-Xarch_host[pass arg to CUDA/HIP host compilation]:argument'
     '-Xclang[pass <arg> to the clang compiler]:arg'
     '-Xcuda-fatbinary[pass arg to fatbinary invocation]:argument'
-    '-Xcuda-ptxas[pass arg to the ptxas assemler]:argument'
+    '-Xcuda-ptxas[pass arg to the ptxas assembler]:argument'
     '-Xflang[pass <arg> to the flang compiler]:arg'
-    '-Xopenmp-target[pass arg to the the target offloading toolchain]:argument'
+    '-Xopenmp-target[pass arg to the target offloading toolchain]:argument'
     '-y[the action to perform on the input]:arg'
     '-Z-[undocumented option]:argument'
   )
@@ -1390,7 +1388,7 @@ warnings+=(
   '-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]'
+  '-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]'
@@ -1418,7 +1416,7 @@ warnings+=(
   '-Wformat-overflow=[warn about function calls with format strings that write past the end of the destination region]:level:(1 2)'
   '-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-truncation[warn about calls to snprintf and similar functions that truncate output]'
   '-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)'
   '-Wformat-y2k[warn about strftime formats yielding 2-digit years]'
@@ -1516,7 +1514,7 @@ warnings+=(
   '-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]'
+  '-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]'
@@ -1553,7 +1551,7 @@ warnings+=(
   '-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-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]'
@@ -1584,7 +1582,7 @@ warnings+=(
   '-Wunused-const-variable[warn when a const variable is unused.  Same as  -Wunused-const-variable=]'
   '-Wunused-const-variable=[warn when a const variable is unused]:level:(1 2)'
   '-Wunused-dummy-argument[warn about unused dummy arguments]'
-  '-Wunused[enable all -Wunused- warnings]'
+  '-Wunused[enable all -Wunused-warnings]'
   '-Wunused-function[warn when a function is unused]'
   '-Wunused-label[warn when a label is unused]'
   '-Wunused-local-typedefs[warn when typedefs locally defined in a function are not used]'
@@ -1750,7 +1748,7 @@ args+=(
   '-ffat-lto-objects[output lto objects containing both the intermediate language and binary output]'
   '-ffinite-math-only[assume no NaNs or infinities are generated]'
   '-ffixed--[mark <register> as being unavailable to the compiler]:register'
-  '-ffloat-store[don'\''t allocate floats and doubles in extended- precision registers]'
+  '-ffloat-store[don'\''t allocate floats and doubles in extended-precision registers]'
   '-fforward-propagate[perform a forward propagation pass on RTL]'
   '-ffp-contract=-[perform floating-point expression contraction]:style [fast]:(on off fast)'
   '-ffp-int-builtin-inexact[allow built-in functions ceil, floor, round, trunc to raise "inexact" exceptions]'
@@ -1800,7 +1798,6 @@ args+=(
   '-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-region=-[set regions for IRA]:region:(all mixed one)'
-  '-fira-region=[set regions for IRA]:region:(one all mixed)'
   '-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: '
@@ -1862,7 +1859,7 @@ args+=(
   '-fPIE[generate position-independent code for executables if possible (large mode)]'
   '-fpie[generate position-independent code for executables if possible (small mode)]'
   '-fplan9-extensions[enable Plan 9 language extensions]'
-  '-fplt[use PLT for PIC calls (-fno-plt- load the address from GOT at call site)]'
+  '-fplt[use PLT for PIC calls (-fno-plt-load the address from GOT at call site)]'
   '-fplugin-arg--[specify argument <key>=<value> for plugin <name>]:-fplugin-arg-name-key=value: ' #TODO
   '-fplugin=-[specify a plugin to load]:plugin: ' # TODO: complete plugins?
   '-fpost-ipa-mem-report[report on memory allocation before interprocedural optimization]'
@@ -1907,11 +1904,7 @@ args+=(
   '-fsched-spec-insn-heuristic[enable the speculative instruction heuristic in the scheduler]'
   '-fsched-spec-load[allow speculative motion of some loads]'
   '-fsched-spec-load-dangerous[allow speculative motion of more loads]'
-  '-fsched-stalled-insns[allow premature scheduling of queued insns]'
-  '-fsched-stalled-insns-dep[set dependence distance checking in premature scheduling of queued insns]'
-  '-fsched-stalled-insns-dep=[set dependence distance checking in premature scheduling of queued insns]:insns:'
   '-fsched-stalled-insns-dep=-[set dependence distance checking in premature scheduling of queued insns]:instructions: '
-  '-fsched-stalled-insns=[set number of queued insns that can be prematurely scheduled]:insns:'
   '-fsched-stalled-insns=-[set number of queued insns that can be prematurely scheduled]:instructions: '
   '-fschedule-fusion[perform a target dependent instruction fusion optimization pass]'
   '-fschedule-insns2[reschedule instructions after register allocation]'
@@ -1942,14 +1935,13 @@ args+=(
   '-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-check=-[insert stack checking code into the program.  -fstack-check=specific if to argument given]:type:(none generic specific)'
+  '-fstack-check=-[insert stack checking code into the program]:type:(none generic specific)'
   '-fstack-limit-register=-[trap if the stack goes past <register>]:register: '
   '-fstack-limit-symbol=-[trap if the stack goes past symbol <name>]:name: '
   '-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]'
-  '-fstack-reuse=[set stack reuse level for local variables]:level:(all named_vars none)'
   '-fstack-reuse=-[set stack reuse level for local variables]:reuse-level:(all named_vars none)'
   '-fstack-usage[output stack usage information on a per-function basis]'
   '-fstdarg-opt[optimize amount of stdarg registers saved to stack at start of function]'
@@ -1989,10 +1981,9 @@ args+=(
   '-ftree-loop-linear[enable loop interchange transforms.  Same as  -floop-interchange]'
   '-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-parallelize-loops=[enable automatic parallelization of loops]'
+  '-ftree-lrs[perform live range splitting during the SSA->normal pass]'
   '-ftree-parallelize-loops=-[enable automatic parallelization of loops]:threads: '
-  '-ftree-partial-pre[in SSA-PRE optimization on trees, enable partial- partial redundancy elimination]'
+  '-ftree-partial-pre[in SSA-PRE optimization on trees, enable partial-partial redundancy elimination]'
   '-ftree-phiprop[enable hoisting loads from conditional pointers]'
   '-ftree-pre[enable SSA-PRE optimization on trees]'
   '-ftree-pta[perform function-local points-to analysis on trees]'
@@ -2083,7 +2074,7 @@ args+=(
   '(-pg)-p[enable function profiling for prof]'
   '-pie[create a position independent executable]'
   {-pipe,--pipe}'[use pipes rather than intermediate files]'
-  {-P,--no-line-commands}'[inhibit generation of linkemakers during preprocess]'
+  {-P,--no-line-commands}'[inhibit generation of linemarkers during preprocess]'
   '(-p)-pg[enable function profiling for gprof]'
   '-###[print commands to run this compilation]'
   '-print-file-name=-[display the full path to library <library>]:library:->library'
@@ -2128,7 +2119,6 @@ args+=(
   '-V[specify compiler version]:compiler version:'
   {-v,--verbose}'[enable verbose output]'
   '*-Wa,-[pass arguments to the assembler]:assembler option:'
-  '--warn--[enable the specified warning]:warning:->warning'
   '*-Werror=-[treat specified warning as error (or all if none specified)]::warning:->warning'
   '-Wfatal-errors[exit on the first error occurred]'
   '*-Wl,-[pass arguments to the linker]:linker option:'
-- 
2.38.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.