https://gcc.gnu.org/g:49501df986031258cc961b054ee0c3dd2c14f999

commit r17-4362-g49501df986031258cc961b054ee0c3dd2c14f999
Author: Léo Hardt <[email protected]>
Date:   Mon Sep 14 10:27:41 2026 -0300

    clean(includes): Remove duplicate stringpool includes.
    
    Removed instances in which headers were included twice (always the second
    one). This happened because, when some functions were moved to attribs.h
    (314e6352), including stringpool+attribs was done in bulk, without checking
    whether stringpool was already included.
    
    Notice include-guards in stringpool.h. Including it twice has no effect.
    
    You can check the validity of this commit by running:
    
        find . -maxdepth 1 -type f -name "*.cc" \
            | xargs grep '#include "stringpool.h"' \
            | sed 's/\(.*\):.*/\1/' \
            | sort \
            | uniq -c -d \
            | sort \
            | sed 's/\(.*\)/'' \1 /'
    
    inside ./gcc on the current trunk.
    
    Best regards,
    
    gcc/ChangeLog:
    
            * asan.cc: Remove duplicate stringpool includes.
            * builtins.cc: Likewise.
            * calls.cc: Likewise.
            * cgraphunit.cc: Likewise.
            * dwarf2out.cc: Likewise.
            * fold-const.cc: Likewise.
            * function.cc: Likewise.
            * gimple-expr.cc: Likewise.
            * internal-fn.cc: Likewise.
            * ipa.cc: Likewise.
            * lto-cgraph.cc: Likewise.
            * pointer-query.cc: Likewise.
            * tree-streamer-in.cc: Likewise.
            * varasm.cc: Likewise.
    
    Signed-off-by: Léo Hardt <[email protected]>

Diff:
---
 gcc/asan.cc             | 1 -
 gcc/builtins.cc         | 1 -
 gcc/calls.cc            | 1 -
 gcc/cgraphunit.cc       | 1 -
 gcc/dwarf2out.cc        | 1 -
 gcc/fold-const.cc       | 1 -
 gcc/function.cc         | 1 -
 gcc/gimple-expr.cc      | 1 -
 gcc/internal-fn.cc      | 1 -
 gcc/ipa.cc              | 1 -
 gcc/lto-cgraph.cc       | 1 -
 gcc/pointer-query.cc    | 1 -
 gcc/tree-streamer-in.cc | 1 -
 gcc/varasm.cc           | 1 -
 14 files changed, 14 deletions(-)

diff --git a/gcc/asan.cc b/gcc/asan.cc
index 7f625fdcfa09..6feeae30e35b 100644
--- a/gcc/asan.cc
+++ b/gcc/asan.cc
@@ -47,7 +47,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "varasm.h"
 #include "stor-layout.h"
 #include "tree-iterator.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "asan.h"
 #include "dojump.h"
diff --git a/gcc/builtins.cc b/gcc/builtins.cc
index f2e21a57a59d..ae414d6ea178 100644
--- a/gcc/builtins.cc
+++ b/gcc/builtins.cc
@@ -63,7 +63,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "langhooks.h"
 #include "value-prof.h"
 #include "builtins.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "asan.h"
 #include "internal-fn.h"
diff --git a/gcc/calls.cc b/gcc/calls.cc
index e5d67b6c97a5..d4f66bc47f28 100644
--- a/gcc/calls.cc
+++ b/gcc/calls.cc
@@ -50,7 +50,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-vrp.h"
 #include "tree-ssanames.h"
 #include "intl.h"
-#include "stringpool.h"
 #include "hash-map.h"
 #include "hash-traits.h"
 #include "attribs.h"
diff --git a/gcc/cgraphunit.cc b/gcc/cgraphunit.cc
index d397c9ae4cc0..7a7278ace5ac 100644
--- a/gcc/cgraphunit.cc
+++ b/gcc/cgraphunit.cc
@@ -205,7 +205,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-nested.h"
 #include "dbgcnt.h"
 #include "lto-section-names.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "ipa-inline.h"
 #include "omp-offload.h"
diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc
index 0b974d63c805..d170e18c7409 100644
--- a/gcc/dwarf2out.cc
+++ b/gcc/dwarf2out.cc
@@ -95,7 +95,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-dfa.h"
 #include "gdb/gdb-index.h"
 #include "rtl-iter.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "file-prefix-map.h" /* remap_debug_filename()  */
 
diff --git a/gcc/fold-const.cc b/gcc/fold-const.cc
index 4c4b535d4404..b9262b34f766 100644
--- a/gcc/fold-const.cc
+++ b/gcc/fold-const.cc
@@ -80,7 +80,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-vrp.h"
 #include "tree-ssanames.h"
 #include "selftest.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "tree-vector-builder.h"
 #include "vec-perm-indices.h"
diff --git a/gcc/function.cc b/gcc/function.cc
index 9358787b262c..fd9da3003cdb 100644
--- a/gcc/function.cc
+++ b/gcc/function.cc
@@ -77,7 +77,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "rtl-iter.h"
 #include "tree-dfa.h"
 #include "tree-ssa.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "gimple.h"
 #include "options.h"
diff --git a/gcc/gimple-expr.cc b/gcc/gimple-expr.cc
index 3b8726ded4d3..fcc31b993906 100644
--- a/gcc/gimple-expr.cc
+++ b/gcc/gimple-expr.cc
@@ -35,7 +35,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "hash-set.h"
 #include "rtl.h"
 #include "tree-pass.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "target.h"
 
diff --git a/gcc/internal-fn.cc b/gcc/internal-fn.cc
index 3fdf89e0e6e1..9bfca87588b3 100644
--- a/gcc/internal-fn.cc
+++ b/gcc/internal-fn.cc
@@ -41,7 +41,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "stor-layout.h"
 #include "dojump.h"
 #include "expr.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "asan.h"
 #include "ubsan.h"
diff --git a/gcc/ipa.cc b/gcc/ipa.cc
index 908fb301cd02..0a5f031c6399 100644
--- a/gcc/ipa.cc
+++ b/gcc/ipa.cc
@@ -39,7 +39,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "ipa-fnsummary.h"
 #include "dbgcnt.h"
 #include "debug.h"
-#include "stringpool.h"
 #include "attribs.h"
 
 /* Return true when NODE has ADDR reference.  */
diff --git a/gcc/lto-cgraph.cc b/gcc/lto-cgraph.cc
index adbf59ca821f..bffe35f2353d 100644
--- a/gcc/lto-cgraph.cc
+++ b/gcc/lto-cgraph.cc
@@ -38,7 +38,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "ipa-utils.h"
 #include "omp-offload.h"
 #include "omp-general.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "alloc-pool.h"
 #include "symbol-summary.h"
diff --git a/gcc/pointer-query.cc b/gcc/pointer-query.cc
index b5ab5cbd1ab2..e230d5f23c51 100644
--- a/gcc/pointer-query.cc
+++ b/gcc/pointer-query.cc
@@ -31,7 +31,6 @@
 #include "tree-object-size.h"
 #include "tree-ssa-strlen.h"
 #include "langhooks.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "gimple-iterator.h"
 #include "gimple-fold.h"
diff --git a/gcc/tree-streamer-in.cc b/gcc/tree-streamer-in.cc
index 595206e0beee..45ba2732d3a3 100644
--- a/gcc/tree-streamer-in.cc
+++ b/gcc/tree-streamer-in.cc
@@ -31,7 +31,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "cgraph.h"
 #include "builtins.h"
 #include "gomp-constants.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "asan.h"
 #include "opts.h"
diff --git a/gcc/varasm.cc b/gcc/varasm.cc
index ad39bdddcfc4..bcaf80749517 100644
--- a/gcc/varasm.cc
+++ b/gcc/varasm.cc
@@ -53,7 +53,6 @@ along with GCC; see the file COPYING3.  If not see
 #include "langhooks.h"
 #include "debug.h"
 #include "common/common-target.h"
-#include "stringpool.h"
 #include "attribs.h"
 #include "asan.h"
 #include "rtl-iter.h"

Reply via email to