Skip to content

Commit e6a7116

Browse files
committed
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]> Acked-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Cc: [email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent 4acf1de commit e6a7116

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gcc-plugins/gcc-common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@
7171
#include "varasm.h"
7272
#include "stor-layout.h"
7373
#include "internal-fn.h"
74+
#include "gimple.h"
7475
#include "gimple-expr.h"
76+
#include "gimple-iterator.h"
7577
#include "gimple-fold.h"
7678
#include "context.h"
7779
#include "tree-ssa-alias.h"
@@ -85,10 +87,8 @@
8587
#include "tree-eh.h"
8688
#include "stmt.h"
8789
#include "gimplify.h"
88-
#include "gimple.h"
8990
#include "tree-phinodes.h"
9091
#include "tree-cfg.h"
91-
#include "gimple-iterator.h"
9292
#include "gimple-ssa.h"
9393
#include "ssa-iterators.h"
9494

0 commit comments

Comments
 (0)