diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-07-11 22:34:03 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2018-07-11 22:34:03 +0900 |
commit | 5f2d265b3a9eddb14076cad595bd9f05b03fa069 (patch) | |
tree | aa6d7289d974608f36a1dfc3889b619ce3913c1a /Completion/Unix/Command | |
parent | 7facf9695078c9ae5d16d0bf4dd11ed0e0b5edb4 (diff) | |
download | zsh-5f2d265b3a9eddb14076cad595bd9f05b03fa069.tar.gz zsh-5f2d265b3a9eddb14076cad595bd9f05b03fa069.tar.xz zsh-5f2d265b3a9eddb14076cad595bd9f05b03fa069.zip |
43164: _gcc: fix 'args=' to 'args+=', and update a few options
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_gcc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc index 5fcd020bd..5b97b8c30 100644 --- a/Completion/Unix/Command/_gcc +++ b/Completion/Unix/Command/_gcc @@ -339,8 +339,7 @@ h8/300) esac if [[ "$service" = clang* ]]; then - args=( - $args + args+=( "-flto=-[generate output files suitable for link time optimization]::style:(full thin)" -emit-llvm "-Qunused-arguments[don't emit warning for unused driver arguments]" @@ -353,7 +352,7 @@ if [[ "$service" = clang* ]]; then "-nobuiltininc[Do not search builtin directory for include files]" ) else - args=( + args+=( '-flto=-[Enable link-time optimization]::jobs:' ) fi @@ -383,7 +382,6 @@ languages=( # generic options (from --help) args+=( - -a -C -H -P -s '-###[print commands to run this compilation]' '-o:output file:_files -g "^*.(c|h|cc|C|cxx)(-.)"' '-x[Specify the language of the following input files]:input file language:('"$languages"')' @@ -395,6 +393,10 @@ args+=( '*-A-:define assertion:' '*-D-:define macro:' '*-U-:undefine macro:' + '-C[do not discard comments during preprocess]' + '-CC[do not discard comments, including macro expansion]' + '-P[inhibit generation of linkemakers during preprocess]' + '-H[print name of each header file used]' '-E[Preprocess only; do not compile, assemble or link]' '-S[Compile only; do not assemble or link]' '-c[Compile and assemble, but do not link]' |