From eaad036407c9546be0de27f61745fef4b6856e56 Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 29 May 2023 20:34:16 +0000 Subject: deploy: d2013ee5952bbcf88906a832748783e372f3a939 --- development/gcc.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'development/gcc.html') diff --git a/development/gcc.html b/development/gcc.html index 170c5e0..bb2e845 100644 --- a/development/gcc.html +++ b/development/gcc.html @@ -83,7 +83,7 @@ @@ -158,6 +158,8 @@
  • -dM list only #define statements
  • -### dry-run, outputting exact compiler/linker invocations
  • -print-multi-lib print available multilib configurations
  • +
  • --help=<class> print description of cmdline options for given class, eg +warnings, optimizers, target, c, c++
  • Target options

    # List all target options with their description.
    @@ -166,6 +168,15 @@ gcc --help=target
     # Configure for current cpu arch and query (-Q) value of options.
     gcc -march=native -Q --help=target
     
    +

    Warnings / optimizations

    +
    # List available warnings with short description.
    +gcc --help=warnings
    +# List available optimizations with short description.
    +gcc --help=optimizers
    +
    +# Prepend --help with `-Q` to print wheter options are enabled or disabled
    +# instead showing their description.
    +

    Builtins

    __builtin_expect(expr, cond)

    Give the compiler a hint which branch is hot, so it can lay out the code -- cgit v1.2.3