diff options
Diffstat (limited to 'Completion/Unix/Command/_gcc')
-rw-r--r-- | Completion/Unix/Command/_gcc | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index b6f1da2c6..8690c5599 100644 --- a/Completion/Unix/Command/_gcc +++ b/Completion/Unix/Command/_gcc @@ -957,10 +957,10 @@ if [[ "$service" = clang* ]]; then '-fveclib=[use the given vector functions library]:arg' '-fvectorize[enable the loop vectorization passes]' '-fvirtual-function-elimination[enables dead virtual function elimination optimization]' - '-fvisibility-dllexport=[the visibility for dllexport defintions]:arg' + '-fvisibility-dllexport=[the visibility for dllexport definitions]:arg' '-fvisibility-externs-dllimport=[the visibility for dllimport external declarations]:arg' '-fvisibility-externs-nodllstorageclass=[the visibility for external declarations without an explicit DLL dllstorageclass]:arg' - '-fvisibility-from-dllstorageclass[set the visiblity of symbols in the generated code from their DLL storage class]' + '-fvisibility-from-dllstorageclass[set the visibility of symbols in the generated code from their DLL storage class]' '-fvisibility-global-new-delete-hidden[give global C++ operator new and delete declarations hidden visibility]' '-fvisibility-inlines-hidden[give inline C++ member functions hidden visibility by default]' '-fvisibility-inlines-hidden-static-local-var[visibility inlines hidden static local var]' @@ -1318,11 +1318,13 @@ fi local -a sanitizers sanitizers=( - address alignment bool bounds enum float-cast-overflow float-divide-by-zero - integer-divide-by-zero memory nonnull-attribute null nullability-arg - nullability-assign nullability-return object-size pointer-overflow return - unsigned-integer-overflow returns-nonnull-attribute shift signed-integer-overflow - unreachable vla-bound vptr + address alignment bool bounds bounds-strict enum builtin float-cast-overflow + float-divide-by-zero hwaddress integer-divide-by-zero kernel-address + kernel-hwaddress leak memory nonnull-attribute null nullability-arg nullability-assign + nullability-return object-size pointer-compare pointer-overflow pointer-subtract return + returns-nonnull-attribute shadow-call-stack shift shift-base shift-exponent + signed-integer-overflow thread undefined unsigned-integer-overflow unreachable + vla-bound vptr ) local -a languages @@ -1892,7 +1894,7 @@ args+=( '-freschedule-modulo-scheduled-loops[enable/disable the traditional scheduling in loops that already passed modulo scheduling]' '-frounding-math[disable optimizations that assume default FP rounding behavior]' '-frtti[generate run time type descriptor information]' - "-fsanitize=-[enable AddressSanitizer, a memory error detector]:style:($sanitizers)" + "*-fsanitize=-[enable AddressSanitizer, a memory error detector]:style:->sanitize" '-fsched2-use-superblocks[if scheduling post reload, do superblock scheduling]' '-fsched-critical-path-heuristic[enable the critical path heuristic in the scheduler]' '-fsched-dep-count-heuristic[enable the dependent count heuristic in the scheduler]' @@ -2282,6 +2284,9 @@ archgeneric) arch+=(generic) _wanted cputypes expl "CPU type" compadd -a arch && ret=0 ;; +sanitize) + _values -s , 'sanitizer' $sanitizers + ;; esac return ret |