https://gcc.gnu.org/g:2aacce1cff758599467a44c6538d5b3f6a7ac3d2
commit r17-4416-g2aacce1cff758599467a44c6538d5b3f6a7ac3d2 Author: Léo Hardt <[email protected]> Date: Wed Sep 16 00:11:44 2026 -0300 clean(imports): Remove Unused Includes and Downgrade Others Good evening, This is a trivial patch containing only either removals of include directives or their substitution by more specific alternatives. No behaviour was changed. Notice that tree-pretty-print.h only includes pretty-print.h and declares functions. Therefore, including pretty-print.h directly is more succinct when only pretty-print's declarations are needed. This is a follow-up to: https://gcc.gnu.org/pipermail/gcc-patches/2026-September/731230.html Successfully bootstrapped on my Intel machine. gcc/ChangeLog: * asan.cc: Remove include that already came from ssa.h. * gimple-ssa-pta-constraints.cc: Remove unused include. * tree-ssa-loop-unswitch.cc: Likewise. * ubsan.cc: Change an include to a more specific file. * value-query.cc: Remove unused import. * value-range-storage.cc: Likewise. * value-range.cc: Change an include to a more specific file. Signed-off-by: Léo Hardt <[email protected]> Diff: --- gcc/asan.cc | 1 - gcc/gimple-ssa-pta-constraints.cc | 1 - gcc/tree-ssa-loop-unswitch.cc | 1 - gcc/ubsan.cc | 2 +- gcc/value-query.cc | 1 - gcc/value-range-storage.cc | 1 - gcc/value-range.cc | 2 +- 7 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gcc/asan.cc b/gcc/asan.cc index 6feeae30e35b..278c414c0dab 100644 --- a/gcc/asan.cc +++ b/gcc/asan.cc @@ -34,7 +34,6 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "ssa.h" #include "stringpool.h" -#include "tree-ssanames.h" #include "optabs.h" #include "emit-rtl.h" #include "cgraph.h" diff --git a/gcc/gimple-ssa-pta-constraints.cc b/gcc/gimple-ssa-pta-constraints.cc index b433aee8243f..fe8bd738f338 100644 --- a/gcc/gimple-ssa-pta-constraints.cc +++ b/gcc/gimple-ssa-pta-constraints.cc @@ -29,7 +29,6 @@ #include "tree-pass.h" #include "ssa.h" #include "cgraph.h" -#include "tree-pretty-print.h" #include "diagnostic-core.h" #include "fold-const.h" #include "stor-layout.h" diff --git a/gcc/tree-ssa-loop-unswitch.cc b/gcc/tree-ssa-loop-unswitch.cc index e1650c1f9ae3..0f600a3701f3 100644 --- a/gcc/tree-ssa-loop-unswitch.cc +++ b/gcc/tree-ssa-loop-unswitch.cc @@ -37,7 +37,6 @@ along with GCC; see the file COPYING3. If not see #include "cfghooks.h" #include "tree-ssa-loop-manip.h" #include "tree-vectorizer.h" -#include "tree-pretty-print.h" #include "gimple-range.h" #include "dbgcnt.h" #include "cfganal.h" diff --git a/gcc/ubsan.cc b/gcc/ubsan.cc index 79a863b46ce6..fb5ddc026709 100644 --- a/gcc/ubsan.cc +++ b/gcc/ubsan.cc @@ -31,7 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "ssa.h" #include "cgraph.h" -#include "tree-pretty-print.h" +#include "pretty-print.h" #include "stor-layout.h" #include "cfganal.h" #include "gimple-iterator.h" diff --git a/gcc/value-query.cc b/gcc/value-query.cc index 337f66d9a794..78976e21f250 100644 --- a/gcc/value-query.cc +++ b/gcc/value-query.cc @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "gimple.h" #include "ssa.h" -#include "tree-pretty-print.h" #include "tree-ssanames.h" #include "fold-const.h" #include "value-query.h" diff --git a/gcc/value-range-storage.cc b/gcc/value-range-storage.cc index 14fa6e29a9f9..08c85a8880b5 100644 --- a/gcc/value-range-storage.cc +++ b/gcc/value-range-storage.cc @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "gimple.h" #include "gimplify.h" #include "ssa.h" -#include "tree-pretty-print.h" #include "fold-const.h" #include "gimple-range.h" #include "value-range-storage.h" diff --git a/gcc/value-range.cc b/gcc/value-range.cc index 8c0d418f6144..6fb1e801f2be 100644 --- a/gcc/value-range.cc +++ b/gcc/value-range.cc @@ -26,7 +26,7 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "gimple.h" #include "ssa.h" -#include "tree-pretty-print.h" +#include "pretty-print.h" #include "value-range-pretty-print.h" #include "value-range-storage.h" #include "fold-const.h"
