From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28529 invoked by alias); 11 Jul 2018 10:08:21 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43164 Received: (qmail 975 invoked by uid 1010); 11 Jul 2018 10:08:21 -0000 X-Qmail-Scanner-Diagnostics: from rcpt-mqugw.biglobe.ne.jp by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(133.208.100.4):SA:0(-2.6/5.0):. Processed in 1.03409 secs); 11 Jul 2018 10:08:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: takimoto-j@kba.biglobe.ne.jp X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Biglobe-Sender: From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: [PATCH] _gcc: fix a trivial bug, and update a few options Message-Id: Date: Wed, 11 Jul 2018 18:26:14 +0900 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3273) X-Biglobe-Spnum: 65476 'gcc -m' doesn't work; this is a trivial bug (see the 2nd hunk). Add description to options -C, -P, -H. Add option -CC. Remove option -a (and -s, which was duplicated) Does the option '-a' exist in any versions of gcc? 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 =20 if [[ "$service" =3D clang* ]]; then - args=3D( - $args + args+=3D( "-flto=3D-[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" =3D clang* ]]; then "-nobuiltininc[Do not search builtin directory for include = files]" ) else - args=3D( + args+=3D( '-flto=3D-[Enable link-time optimization]::jobs:' ) fi @@ -383,7 +382,6 @@ languages=3D( =20 # generic options (from --help) args+=3D( - -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+=3D( '*-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]'