]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
gcc-plugins: Detail c-common.h location for GCC 4.6
authorKees Cook <keescook@chromium.org>
Sat, 15 Apr 2017 18:45:20 +0000 (11:45 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 28 May 2017 17:23:02 +0000 (10:23 -0700)
The c-common.h file moved in stock gcc 4.7, not gcc 4.6. However, most
people building plugins with gcc 4.6 are using the Debian or Ubuntu
version, which includes a patch to move the headers to the 4.7 location.
In case anyone trips over this with a stock gcc 4.6, add a pointer to the
patch used by Debian/Ubuntu.

Signed-off-by: Kees Cook <keescook@chromium.org>
scripts/gcc-plugins/gcc-common.h

index b232ab15624c66498c3cefbba6e375e7271f493f..918953ca45274328dddf1b965d66d6294c2d5d54 100644 (file)
 #endif
 
 #if BUILDING_GCC_VERSION >= 4006
+/*
+ * The c-family headers were moved into a subdirectory in GCC version
+ * 4.7, but most plugin-building users of GCC 4.6 are using the Debian
+ * or Ubuntu package, which has an out-of-tree patch to move this to the
+ * same location as found in 4.7 and later:
+ * https://sources.debian.net/src/gcc-4.6/4.6.3-14/debian/patches/pr45078.diff/
+ */
 #include "c-family/c-common.h"
 #else
 #include "c-common.h"