From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7819) id 3CA9E3858D1E; Mon, 3 Oct 2022 21:07:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CA9E3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664831248; bh=2dwMk78p5bcVSBZrDkS5dbm+oKZe49x0Qgd4a6POm1U=; h=From:To:Subject:Date:From; b=pSpnFJofo/YoxNdi3EdqZyPLRFAPDJOf57mYiKd7wI/tN2AA2ZK3cn07wCtEV2vvE P9CdsmASyYnONTIl0yYCTvFJAIyg779yHpv+cmiI52b2blRa2HyArKfdfaYu1s8Fz2 xONNzOVEBEvj9Sr+cRGyHyUHAYTnTe2tcxNTIDso= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Sergei Trofimovich To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-8807] gcc/config/t-i386: add build dependencies on i386-builtin-types.inc X-Act-Checkin: gcc X-Git-Author: Sergei Trofimovich X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: 59667a0a4515a981ecbda88a8a59beabe234928c X-Git-Newrev: 4b25752a2970745ccc9f7ad0294b9e19e56c5300 Message-Id: <20221003210728.3CA9E3858D1E@sourceware.org> Date: Mon, 3 Oct 2022 21:07:28 +0000 (GMT) List-Id: https://gcc.gnu.org/g:4b25752a2970745ccc9f7ad0294b9e19e56c5300 commit r12-8807-g4b25752a2970745ccc9f7ad0294b9e19e56c5300 Author: Sergei Trofimovich Date: Fri Sep 16 18:33:11 2022 +0100 gcc/config/t-i386: add build dependencies on i386-builtin-types.inc i386-builtin-types.inc is included indirectly via i386-builtins.h into 4 files: i386.cc i386-builtins.cc i386-expand.cc i386-features.cc Only i386.cc dependency was present in gcc/config/t-i386 makefile. As a result parallel builds occasionally fail as: g++ ... -o i386-builtins.o ... ../../gcc-13-20220911/gcc/config/i386/i386-builtins.cc In file included from ../../gcc-13-20220911/gcc/config/i386/i386-builtins.cc:92: ../../gcc-13-20220911/gcc/config/i386/i386-builtins.h:25:10: fatal error: i386-builtin-types.inc: No such file or directory 25 | #include "i386-builtin-types.inc" | ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[3]: *** [../../gcc-13-20220911/gcc/config/i386/t-i386:54: i386-builtins.o] Error 1 shuffle=1663349189 gcc/ PR target/107064 * config/i386/t-i386: Add build-time dependencies against i386-builtin-types.inc to i386-builtins.o, i386-expand.o, i386-features.o. (cherry picked from commit ef3165736d9daafba88adb2db65b2e8ebf0024ca) Diff: --- gcc/config/i386/t-i386 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/config/i386/t-i386 b/gcc/config/i386/t-i386 index 4e2a0efc615..ffdbbdfe8ce 100644 --- a/gcc/config/i386/t-i386 +++ b/gcc/config/i386/t-i386 @@ -62,7 +62,12 @@ i386-features.o: $(srcdir)/config/i386/i386-features.cc $(COMPILE) $< $(POSTCOMPILE) +# i386-builtin-types.inc is included into i386-builtins.h. +# Below are direct users of i386-builtins.h: i386.o: i386-builtin-types.inc +i386-builtins.o: i386-builtin-types.inc +i386-expand.o: i386-builtin-types.inc +i386-features.o: i386-builtin-types.inc i386-builtin-types.inc: s-i386-bt ; @true s-i386-bt: $(srcdir)/config/i386/i386-builtin-types.awk \