diff mbox

[1/2] GCC release 8 support for gcc-plugins

Message ID 119189.1517763703@turing-police.cc.vt.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Valdis Klētnieks Feb. 4, 2018, 5:01 p.m. UTC
GCC requires another #include to get the gcc-plugins to build cleanly.

Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>

Comments

Kees Cook Feb. 6, 2018, 12:54 a.m. UTC | #1
On Mon, Feb 5, 2018 at 4:01 AM,  <valdis.kletnieks@vt.edu> wrote:
> GCC requires another #include to get the gcc-plugins to build cleanly.
>
> Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
>
> diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h
> index ffd1dfaa1cc1..f46750053377 100644
> --- a/scripts/gcc-plugins/gcc-common.h
> +++ b/scripts/gcc-plugins/gcc-common.h
> @@ -97,6 +97,10 @@
>  #include "predict.h"
>  #include "ipa-utils.h"
>
> +#if BUILDING_GCC_VERSION >= 8000
> +#include "stringpool.h"
> +#endif
> +
>  #if BUILDING_GCC_VERSION >= 4009
>  #include "attribs.h"
>  #include "varasm.h"

Thanks! I can confirm this works for me. I'll get it applied.

-Kees
diff mbox

Patch

diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h
index ffd1dfaa1cc1..f46750053377 100644
--- a/scripts/gcc-plugins/gcc-common.h
+++ b/scripts/gcc-plugins/gcc-common.h
@@ -97,6 +97,10 @@ 
 #include "predict.h"
 #include "ipa-utils.h"
 
+#if BUILDING_GCC_VERSION >= 8000
+#include "stringpool.h"
+#endif
+
 #if BUILDING_GCC_VERSION >= 4009
 #include "attribs.h"
 #include "varasm.h"