commit: f659ca60651a53d186ce854c3eefa8ad024cd0ba Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Sun Jan 22 14:59:31 2023 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Sun Jan 22 14:59:31 2023 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f659ca60
gcc-plugins: Reorganize gimple includes for GCC 13 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> 0000_README | 4 +++ ..._gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch | 41 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/0000_README b/0000_README index eb8a606b..b3e83a42 100644 --- a/0000_README +++ b/0000_README @@ -103,6 +103,10 @@ Patch: 2920_sign-file-patch-for-libressl.patch From: https://bugs.gentoo.org/717166 Desc: sign-file: full functionality with modern LibreSSL +Patch: 2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch +From: https://lore.kernel.org/lkml/mhng-8bc81919-3023-4d72-bd44-2443606b4fd7@palmer-ri-x1c9a/T/ +Desc: gcc-plugins: Reorganize gimple includes for GCC 13 + Patch: 3000_Support-printing-firmware-info.patch From: https://bugs.gentoo.org/732852 Desc: Print firmware info (Reqs CONFIG_GENTOO_PRINT_FIRMWARE_INFO). Thanks to Georgy Yakovlev diff --git a/2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch b/2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch new file mode 100644 index 00000000..0b454ec8 --- /dev/null +++ b/2930_gcc-plugins-Reorg-gimple-incs-for-gcc-13.patch @@ -0,0 +1,41 @@ +gcc-plugins: Reorganize gimple includes for GCC 13 + +The gimple-iterator.h header must be included before gimple-fold.h +starting with GCC 13. Reorganize gimple headers to work for all GCC +versions. + +Reported-by: Palmer Dabbelt <[email protected]> +Link: https://lore.kernel.org/all/[email protected]/ +Cc: [email protected] +Signed-off-by: Kees Cook <[email protected]> +--- + scripts/gcc-plugins/gcc-common.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/scripts/gcc-plugins/gcc-common.h b/scripts/gcc-plugins/gcc-common.h +index 9a1895747b15..84c730da36dd 100644 +--- a/scripts/gcc-plugins/gcc-common.h ++++ b/scripts/gcc-plugins/gcc-common.h +@@ -71,7 +71,9 @@ + #include "varasm.h" + #include "stor-layout.h" + #include "internal-fn.h" ++#include "gimple.h" + #include "gimple-expr.h" ++#include "gimple-iterator.h" + #include "gimple-fold.h" + #include "context.h" + #include "tree-ssa-alias.h" +@@ -85,10 +87,8 @@ + #include "tree-eh.h" + #include "stmt.h" + #include "gimplify.h" +-#include "gimple.h" + #include "tree-phinodes.h" + #include "tree-cfg.h" +-#include "gimple-iterator.h" + #include "gimple-ssa.h" + #include "ssa-iterators.h" + +-- +2.34.1
