GCC Picks Up Meaningful Bash Completion Support To Help With Compiler Options
Written by Michael Larabel in GNU on 29 June 2018 at 08:04 AM EDT. 17 Comments
GNU --
One of the advantages of the LLVM Clang compiler has been better integration with Bash completion support, but now the GCC compiler supports a --completion argument for feeding into the Bash completion script with better matching of supported options/values when typing into a supported terminal.

Martin Liška of SUSE started earlier this year on proper Bash completion support for GCC after being inspired by Clang's --autocomplete option. As of yesterday, the new GCC --completion option is supported by mainline GCC for next year's GCC 9 compiler.

This support is much better than the basic Bash completion scripts that have been available up to this point for the GNU Compiler Collection and should yield more matches of possible options/values when being typed by the user. This makes it much easier for those wondering about the possible values without having to resort to the man page or other GCC documentation when it comes to the sanitize features and other parameters, making for a nice usability improvement especially among new users/developers come GCC9.
Related News
About The Author
Author picture

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter or contacted via MichaelLarabel.com.

Popular News This Week