]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in: Make recog.h depend on $(TREE_H) [PR111021]
authorKewen Lin <linkw@linux.ibm.com>
Tue, 15 Aug 2023 08:01:20 +0000 (03:01 -0500)
committerKewen Lin <linkw@linux.ibm.com>
Tue, 15 Aug 2023 08:01:20 +0000 (03:01 -0500)
Commit r14-3093 introduced a random build failure on
build/gencondmd.cc building.  Since r14-3093 make recog.h
include tree.h, which further includes (depends on) some
files that are generated during the building, such as:
all-tree.def, tree-check.h etc, when building file
build/gencondmd.cc, the build can fail if these dependences
are not ready.  So this patch is to teach this dependence.

Thank Jan-Benedict Glaw for testing this!

PR bootstrap/111021

gcc/ChangeLog:

* Makefile.in (RECOG_H): Add $(TREE_H) as dependence.

gcc/Makefile.in

index a17191435e3587c7b1e51e5006203c1f9a0e8c3d..a00dad965c5f67d0527b6455692062a0160d5743 100644 (file)
@@ -992,7 +992,7 @@ GIMPLE_H = gimple.h gimple.def gsstruct.def $(VEC_H) \
        $(GGC_H) $(BASIC_BLOCK_H) $(TREE_H) tree-ssa-operands.h \
        tree-ssa-alias.h $(INTERNAL_FN_H) $(HASH_TABLE_H) is-a.h
 GCOV_IO_H = gcov-io.h version.h auto-host.h gcov-counter.def
-RECOG_H = recog.h
+RECOG_H = recog.h $(TREE_H)
 EMIT_RTL_H = emit-rtl.h
 FLAGS_H = flags.h flag-types.h $(OPTIONS_H)
 OPTIONS_H = options.h flag-types.h $(OPTIONS_H_EXTRA)