|
| 1 | +csgcca(1) |
| 2 | +========= |
| 3 | +:doctype: manpage |
| 4 | + |
| 5 | +NAME |
| 6 | +---- |
| 7 | +csgcca - a compiler wrapper that runs the GCC analyzer in background |
| 8 | + |
| 9 | + |
| 10 | +SYNOPSIS |
| 11 | +-------- |
| 12 | +*csgcca* ['--help' | '--print-path-to-wrap'] |
| 13 | + |
| 14 | + |
| 15 | +DESCRIPTION |
| 16 | +----------- |
| 17 | +csgcca is a compiler wrapper that runs 'gcc -fanalyzer' in background. Create |
| 18 | +a symbolic link to csgcca named as your compiler and put it to your $PATH. |
| 19 | + |
| 20 | +The following parameters are given to the GCC analyzer by default: |
| 21 | + |
| 22 | + * -fanalyzer |
| 23 | + |
| 24 | + * -fdiagnostics-path-format=separate-events |
| 25 | + |
| 26 | + * -fno-diagnostics-show-caret |
| 27 | + |
| 28 | + * -c -o /dev/null |
| 29 | + |
| 30 | +The following parameters are passed to the GCC analyzer from compiler's command |
| 31 | +line: |
| 32 | + |
| 33 | + * -D... |
| 34 | + |
| 35 | + * -I... |
| 36 | + |
| 37 | + * -include ... |
| 38 | + |
| 39 | + * -iquote ... |
| 40 | + |
| 41 | + * -isystem ... |
| 42 | + |
| 43 | + * -m16 |
| 44 | + |
| 45 | + * -m32 |
| 46 | + |
| 47 | + * -m64 |
| 48 | + |
| 49 | + * -fexceptions |
| 50 | + |
| 51 | + * -fno-exceptions |
| 52 | + |
| 53 | + * -O... |
| 54 | + |
| 55 | + * -std... |
| 56 | + |
| 57 | +If csgcca is installed on system, the following command activates the wrapper: |
| 58 | +------------------------------------------------- |
| 59 | +export PATH="`csgcca --print-path-to-wrap`:$PATH" |
| 60 | +------------------------------------------------- |
| 61 | + |
| 62 | + |
| 63 | +OPTIONS |
| 64 | +------- |
| 65 | +*--help*:: |
| 66 | + Prints basic usage information. |
| 67 | +
|
| 68 | +*--print-path-to-wrap*:: |
| 69 | + Prints path to the directory with symlinks to the csgcca executable. |
| 70 | +
|
| 71 | +
|
| 72 | +EXIT STATUS |
| 73 | +----------- |
| 74 | +csgcca propagates the exit status returned by the compiler (in case csgcca |
| 75 | +succeeds to run the compiler). The exit status returned by the GCC analyzer |
| 76 | +does not affect the resulting exit status. |
| 77 | + |
| 78 | + |
| 79 | +ENVIRONMENT VARIABLES |
| 80 | +--------------------- |
| 81 | +*DEBUG_CSGCCA*:: |
| 82 | + If set to a non-empty string, csgcca outputs the list of parameters given |
| 83 | + to the GCC analyzer to the standard output. |
| 84 | +
|
| 85 | +*CSGCCA_ADD_OPTS*:: |
| 86 | + csgcca expects a colon-separated list of GCC options that should be |
| 87 | + appended to command line prior to invoking the GCC analyzer. The options |
| 88 | + are appended even if they already appear in the command line and they are |
| 89 | + always appended at the end of the command line. |
| 90 | +
|
| 91 | +
|
| 92 | +BUGS |
| 93 | +---- |
| 94 | +Please report bugs and feature requests at https://github.com/kdudka/cscppc . |
| 95 | + |
| 96 | + |
| 97 | +AUTHOR |
| 98 | +------ |
| 99 | +Written by Kamil Dudka. |
| 100 | +
|
| 101 | +
|
| 102 | +COPYING |
| 103 | +------- |
| 104 | +Copyright \(C) 2020-2021 Red Hat, Inc. Free use of this software is granted |
| 105 | +under the terms of the GNU General Public License (GPL). See the COPYING file |
| 106 | +for details. |
0 commit comments