]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree: Add include to tm_p.h to tree.cc [PR120866]
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 13 Jul 2025 18:56:03 +0000 (11:56 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 13 Jul 2025 19:07:30 +0000 (12:07 -0700)
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_apinski@quicinc.com>
gcc/tree.cc

index 6a055c8c2d0c7fa64f58d743ce45f39cc640d45c..9d3d0ecf3245977454573e0b01c95b09bf26aae1 100644 (file)
@@ -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"