diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-09 23:41:11 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-11-09 23:51:18 +0000 |
commit | 6c31beba5580c579000f413495f7cfe38d9b368a (patch) | |
tree | ba9b382a7340549f763128de5ef0500d71a0b841 /4.4.7 | |
parent | 4.3.6: expand 98_all_cgraph_node-gcc-9.patch to allow gcc-9 (diff) | |
download | gcc-patches-6c31beba5580c579000f413495f7cfe38d9b368a.tar.gz gcc-patches-6c31beba5580c579000f413495f7cfe38d9b368a.tar.bz2 gcc-patches-6c31beba5580c579000f413495f7cfe38d9b368a.zip |
4.4.7: expand 97_all_cgraph_node-gcc-9.patch to allow gcc-9
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '4.4.7')
-rw-r--r-- | 4.4.7/gentoo/99_all_cgraph_node-gcc-9.patch | 6 | ||||
-rw-r--r-- | 4.4.7/gentoo/README.history | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/4.4.7/gentoo/99_all_cgraph_node-gcc-9.patch b/4.4.7/gentoo/99_all_cgraph_node-gcc-9.patch index 92f27a8..16e99b0 100644 --- a/4.4.7/gentoo/99_all_cgraph_node-gcc-9.patch +++ b/4.4.7/gentoo/99_all_cgraph_node-gcc-9.patch @@ -16,7 +16,7 @@ gcc-4.6.4/gcc/pretty-print.h:322:6: error: 'cgraph_node' is not defined as a typ /* This header may be included before diagnostics-core.h, hence the duplicate definitions to allow for GCC-specific formats. */ -#if GCC_VERSION >= 3005 -+#if (GCC_VERSION >= 3005) && (GCC_VERSION != 9001) /* 9.1.0 is buggy: https://gcc.gnu.org/PR90677 */ ++#if (GCC_VERSION >= 3005) && (__GNUC__ != 9) /* gcc-9 is buggy: https://gcc.gnu.org/PR90677 */ #define ATTRIBUTE_GCC_PPDIAG(m, n) __attribute__ ((__format__ (__gcc_diag__, m ,n))) ATTRIBUTE_NONNULL(m) #else #define ATTRIBUTE_GCC_PPDIAG(m, n) ATTRIBUTE_NONNULL(m) @@ -27,7 +27,7 @@ gcc-4.6.4/gcc/pretty-print.h:322:6: error: 'cgraph_node' is not defined as a typ diagnostic framework extensions, you must include this file before toplev.h, not after. */ -#if GCC_VERSION >= 4001 -+#if (GCC_VERSION >= 4001) && (GCC_VERSION != 9001) /* 9.1.0 is buggy: https://gcc.gnu.org/PR90677 */ ++#if (GCC_VERSION >= 4001) && (__GNUC__ != 9) /* gcc-9 is buggy: https://gcc.gnu.org/PR90677 */ #define ATTRIBUTE_GCC_CDIAG(m, n) __attribute__ ((__format__ (GCC_DIAG_STYLE, m ,n))) ATTRIBUTE_NONNULL(m) #else #define ATTRIBUTE_GCC_CDIAG(m, n) ATTRIBUTE_NONNULL(m) @@ -38,7 +38,7 @@ gcc-4.6.4/gcc/pretty-print.h:322:6: error: 'cgraph_node' is not defined as a typ each language front end can extend them with its own set of format specifiers. We must use custom format checks. */ -#if GCC_VERSION >= 4001 -+#if (GCC_VERSION >= 4001) && (GCC_VERSION != 9001) /* 9.1.0 is buggy: https://gcc.gnu.org/PR90677 */ ++#if (GCC_VERSION >= 4001) && (__GNUC__ != 9) /* gcc-9 is buggy: https://gcc.gnu.org/PR90677 */ #define ATTRIBUTE_GCC_DIAG(m, n) __attribute__ ((__format__ (GCC_DIAG_STYLE, m, n))) ATTRIBUTE_NONNULL(m) #else #define ATTRIBUTE_GCC_DIAG(m, n) ATTRIBUTE_NONNULL(m) diff --git a/4.4.7/gentoo/README.history b/4.4.7/gentoo/README.history index 6c252da..a6c1a97 100644 --- a/4.4.7/gentoo/README.history +++ b/4.4.7/gentoo/README.history @@ -1,3 +1,6 @@ +2 9 Nov 2019 + U 99_all_cgraph_node-gcc-9.patch + 1.5 1 Jun 2019 + 98_all_libjava-ucontext.patch + 99_all_cgraph_node-gcc-9.patch |