https://gcc.gnu.org/g:6748d21a3266defaacdedd67b5ff76a25f9839d4

commit r16-8548-g6748d21a3266defaacdedd67b5ff76a25f9839d4
Author: Alex Coplan <[email protected]>
Date:   Fri Mar 27 16:54:24 2026 +0000

    aarch64: Add some missing dependencies to t-aarch64 [PR122483]
    
    A subsequent patch adds a new target hook; I noticed while testing an
    incremental build that some aarch64 object files which invoke target
    hooks are missing dependencies on target.def.  This patch fixes that by
    adjusting the relevant object files to depend on TARGET_H instead of
    TM_H; the former includes the latter but additionally depends on
    target.def.
    
    I verified that these changes fixed test failures (ICEs) in
    aarch64-sme.exp seen due to the missed dependencies in an incremental
    build with later patches.
    
    gcc/ChangeLog:
    
            PR target/122483
            * config/aarch64/t-aarch64: Replace instances of TM_H with
            TARGET_H where appropriate, add missing dependency on TARGET_H
            for aarch64-early-ra.cc.

Diff:
---
 gcc/config/aarch64/t-aarch64 | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/config/aarch64/t-aarch64 b/gcc/config/aarch64/t-aarch64
index 7584d3e4d59b..388aa0aef302 100644
--- a/gcc/config/aarch64/t-aarch64
+++ b/gcc/config/aarch64/t-aarch64
@@ -57,7 +57,7 @@ 
$(srcdir)/config/aarch64/aarch64-generate-json-tuning-routines.py
 s-mddeps: s-aarch64-tune-md
 
 aarch64-builtins.o: $(srcdir)/config/aarch64/aarch64-builtins.cc $(CONFIG_H) \
-  $(SYSTEM_H) coretypes.h $(TM_H) $(REGS_H) \
+  $(SYSTEM_H) coretypes.h $(TARGET_H) $(REGS_H) \
   $(RTL_H) $(TREE_H) expr.h $(TM_P_H) $(RECOG_H) langhooks.h \
   $(DIAGNOSTIC_CORE_H) $(OPTABS_H) \
   $(srcdir)/config/aarch64/aarch64-simd-builtins.def \
@@ -72,7 +72,7 @@ aarch64-sve-builtins.o: 
$(srcdir)/config/aarch64/aarch64-sve-builtins.cc \
   $(srcdir)/config/aarch64/aarch64-sve-builtins-base.def \
   $(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.def \
   $(srcdir)/config/aarch64/aarch64-sve-builtins-sme.def \
-  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
+  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) $(TREE_H) $(RTL_H) \
   $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) $(DIAGNOSTIC_H) \
   $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
   gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \
@@ -97,7 +97,7 @@ aarch64-sve-builtins-shapes.o: \
 
 aarch64-sve-builtins-base.o: \
   $(srcdir)/config/aarch64/aarch64-sve-builtins-base.cc \
-  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
+  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) $(TREE_H) $(RTL_H) \
   $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \
   $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
   gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \
@@ -111,7 +111,7 @@ aarch64-sve-builtins-base.o: \
 
 aarch64-sve-builtins-sve2.o: \
   $(srcdir)/config/aarch64/aarch64-sve-builtins-sve2.cc \
-  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
+  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) $(TREE_H) $(RTL_H) \
   $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \
   $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
   gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \
@@ -125,7 +125,7 @@ aarch64-sve-builtins-sve2.o: \
 
 aarch64-sve-builtins-sme.o: \
   $(srcdir)/config/aarch64/aarch64-sve-builtins-sme.cc \
-  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
+  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TARGET_H) $(TREE_H) $(RTL_H) \
   $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) \
   $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
   gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) \
@@ -199,7 +199,7 @@ aarch-bti-insert.o: 
$(srcdir)/config/arm/aarch-bti-insert.cc \
 
 aarch64-early-ra.o: $(srcdir)/config/aarch64/aarch64-early-ra.cc \
     $(CONFIG_H) $(SYSTEM_H) $(CORETYPES_H) $(BACKEND_H) $(RTL_H) $(DF_H) \
-    $(RTL_SSA_H) tree-pass.h
+    $(RTL_SSA_H) $(TARGET_H) tree-pass.h
        $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
                $(srcdir)/config/aarch64/aarch64-early-ra.cc

Reply via email to