https://gcc.gnu.org/g:4d7baa94a48c27030c8ffcfaf3dd187be09903a9

commit r16-2221-g4d7baa94a48c27030c8ffcfaf3dd187be09903a9
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Sun Jul 13 11:56:03 2025 -0700

    tree: Add include to tm_p.h to tree.cc [PR120866]
    
    After r16-1738-g0337e3c2743ca0, a call to ASM_GENERATE_INTERNAL_LABEL
    was done without including tm_p.h. This does not break most targets
    as ASM_GENERATE_INTERNAL_LABEL macro function does not call target
    specific functions from it; mostly just sprintf. It does however
    break pdp11-aout and powerpc-aix* because those two call a target
    specific function to do create the internal label.
    
    Pushed as obvious after a build of gcc for pdp11-aout and x86_64-linux-gnu.
    
            PR middle-end/120866
    gcc/ChangeLog:
    
            * tree.cc: Add include to tm_p.h.
    
    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Diff:
---
 gcc/tree.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree.cc b/gcc/tree.cc
index 6a055c8c2d0c..9d3d0ecf3245 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -32,6 +32,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "coretypes.h"
 #include "backend.h"
 #include "target.h"
+#include "tm_p.h"
 #include "tree.h"
 #include "gimple.h"
 #include "tree-pass.h"

Reply via email to