Lines Matching full:gcc

2 GCC plugin infrastructure
9 GCC plugins are loadable modules that provide extra features to the
14 The GCC plugin infrastructure of the kernel supports building out-of-tree
18 Currently the GCC plugin infrastructure supports only some architectures.
20 GCC plugins.
26 .. [1] https://gcc.gnu.org/onlinedocs/gccint/Plugins.html
27 .. [2] https://gcc.gnu.org/onlinedocs/gccint/Plugin-API.html#Plugin-API
28 .. [3] https://gcc.gnu.org/onlinedocs/gccint/GIMPLE.html
29 .. [4] https://gcc.gnu.org/onlinedocs/gccint/IPA.html
30 .. [5] https://gcc.gnu.org/onlinedocs/gccint/RTL.html
38 GCC plugins are designed to provide a place to experiment with potential
39 compiler features that are neither in GCC nor Clang upstream. Once
40 their utility is proven, the goal is to upstream the feature into GCC
42 feature is available in all supported versions of GCC.
45 upstream compiler support (in either GCC or Clang).
47 When a feature exists in Clang but not GCC, effort should be made to
48 bring the feature to upstream GCC (rather than just as a kernel-specific
49 GCC plugin), so the entire ecosystem can benefit from it.
51 Similarly, even if a feature provided by a GCC plugin does *not* exist
53 to upstream the feature to GCC (and Clang).
55 After a feature is available in upstream GCC, the plugin will be made
56 unbuildable for the corresponding GCC version (and later). Once all
57 kernel-supported versions of GCC provide the feature, the plugin will
64 **$(src)/scripts/gcc-plugins**
66 This is the directory of the GCC plugins.
68 **$(src)/scripts/gcc-plugins/gcc-common.h**
70 This is a compatibility header for GCC plugins.
71 It should be always included instead of individual gcc headers.
73 **$(src)/scripts/gcc-plugins/gcc-generate-gimple-pass.h,
74 $(src)/scripts/gcc-plugins/gcc-generate-ipa-pass.h,
75 $(src)/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h,
76 $(src)/scripts/gcc-plugins/gcc-generate-rtl-pass.h**
86 You must install the gcc plugin headers for your gcc version,
87 e.g., on Ubuntu for gcc-10::
89 apt-get install gcc-10-plugin-dev
93 dnf install gcc-plugin-devel libmpc-devel
99 Enable the GCC plugin infrastructure and some plugin(s) you want to use
106 Run gcc (native or cross-compiler) to ensure plugin headers are detected::
108 gcc -print-file-name=plugin
109 CROSS_COMPILE=arm-linux-gnu- ${CROSS_COMPILE}gcc -print-file-name=plugin
117 /usr/lib/gcc/x86_64-redhat-linux/12/plugin
124 the cyclomatic complexity GCC plugin.
127 4. How to add a new GCC plugin
130 The GCC plugins are in scripts/gcc-plugins/. You need to put plugin source files
131 right under scripts/gcc-plugins/. Creating subdirectories is not supported.
132 It must be added to scripts/gcc-plugins/Makefile, scripts/Makefile.gcc-plugins