From patchwork Fri Sep 16 18:49:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Trofimovich X-Patchwork-Id: 1258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5044:0:0:0:0:0 with SMTP id h4csp884354wrt; Fri, 16 Sep 2022 11:50:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5APy/n58R2xKA0Ioi31OkAASkmJGXx8aCwwzC0smpiyEt923WPeQu63aW/PiOTuxB2uQnz X-Received: by 2002:a17:907:2d21:b0:77d:4f86:2e65 with SMTP id gs33-20020a1709072d2100b0077d4f862e65mr4386433ejc.58.1663354223436; Fri, 16 Sep 2022 11:50:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663354223; cv=none; d=google.com; s=arc-20160816; b=tvHaYcfBKeKSnCJHTb3Xn1YEdUpyi4eCWZ3ZFVHC+zsMr7fzEiDGFmut81/OPnIK7J x4YVyKVTE2y8guOSgPUiUSunm/fLjYw0x55KZgvuHnV3Mol4QzNM2DjKCr8Y3DVuGlg7 9dPyC+b6oUyDvjNr37qoj5qqiIzUM8PdJnEcMKjlmT0FYq/9pPcmwApWX3p/UjLBwK6E JiOzw9NLg2rB3tWqxJO/WrwpjhH+XJNXFObKV8aZ3dD3rAAMtf0abhPVU6bOdLs4j1Es VNQ6qB2LTSiHso5t6XC2BS7eA5uODyv42ayZaJBeidSmQUxiSzfLTh0zYAok3X2zUlNT zqfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=cnpiu0B6IWtN8JJxRRgrUlcIwdzU2gKLAgh95Zq3k9s=; b=ozwYxwreGY4fFWMcFv9N0YcLBoqIrD+UU0FSxRG2qdfg2LHopFKxFkIHvizuJXpZ/Z Sl8hLr0DRlEYgPJ4JyoHW+i7xIfTg7xVYLuVzpEbXAbuR2lE4sM1XIDNsc5ou3oc4/NV c7oFHC9UlG7CKXjX7+LiwUvVik3kT3X43ABJ6UIiLtph1moZFRHwdAPWV2lPZmsyUnWO kDS56l7AWLOCdvXxqP7695aReiq7p4h2l4jrAEBS7S65lUCsPicbfYF11P88YyPlamXf TQgEOn2qz6TatCb0XNBgNrO6+hGTA5h0AD6XD5tLYsQbikh3Iv+22zwR9Oa7sOTAXgWJ eJyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=u1Ku8bJm; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t19-20020a50ab53000000b00451747ba5f4si2576475edc.505.2022.09.16.11.50.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 11:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=u1Ku8bJm; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6B95F38AA262 for ; Fri, 16 Sep 2022 18:50:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B95F38AA262 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663354222; bh=cnpiu0B6IWtN8JJxRRgrUlcIwdzU2gKLAgh95Zq3k9s=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=u1Ku8bJmBne5abAlpDILqwcSrHOU9ru6hpib7Fr6gg3A7018qtzRdEEHVyeW4MjSp Rq4tw3eRRIP2ER70gc7j24SEt9unZj2Zk+/el9dHG70yCwMHFA9VD764S59GFuj1X7 1lAI4TKLrVV5pezRLFZE270d0eGjYb/Epz+6WNY0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by sourceware.org (Postfix) with ESMTPS id AF67C38AA278 for ; Fri, 16 Sep 2022 18:49:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AF67C38AA278 Received: by mail-ej1-x634.google.com with SMTP id dv25so51391427ejb.12 for ; Fri, 16 Sep 2022 11:49:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=cnpiu0B6IWtN8JJxRRgrUlcIwdzU2gKLAgh95Zq3k9s=; b=Ft7wMBSUJX0/Ea5H7hmP340tSx1qwrt3VKmOjONByVozE1qxUbr4RL+LgyM1Pxfenn G+QhKcQtTsb4npnVJMoC10e5f4aEe9IJm84RXuxDcGZshW2Y62KS/Hj6HYptYVGTOxI3 jkiSQddvzH6kPJ5TINKRweyglkDYYMyndtgbF3DKDNu+EI6EqGeDK/4CBirqchEd571j 5ia6IgavsXUTRYGVXkBQIPLoOsqhkgoGBHeLnpG49MgrNksIUmyq9ZXqlKgVPAhkF1Y8 4h8EWbkop725bpqpUJOoeNRH9V0Pougm22NrHKK0K++gMSzsjFcEqi8ngJ7n0fQAq+xH rhhg== X-Gm-Message-State: ACrzQf1yVYFC+ANM+vQ869fqi80gwxkuSsjw2eDAoInRgcmdEk87Nj8o Ug7gmto2ugngUxhaNzGvVMadE+kdHdY= X-Received: by 2002:a17:906:9b92:b0:780:1f91:30fc with SMTP id dd18-20020a1709069b9200b007801f9130fcmr4700617ejc.142.1663354168201; Fri, 16 Sep 2022 11:49:28 -0700 (PDT) Received: from nz.home (host81-147-8-104.range81-147.btcentralplus.com. [81.147.8.104]) by smtp.gmail.com with ESMTPSA id m17-20020a1709062b9100b0073c0b87ba34sm10849312ejg.198.2022.09.16.11.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 11:49:27 -0700 (PDT) Received: by nz.home (Postfix, from userid 1000) id 735096D735C12; Fri, 16 Sep 2022 19:49:26 +0100 (BST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] gcc/config/t-i386: add build dependencies on i386-builtin-types.inc Date: Fri, 16 Sep 2022 19:49:22 +0100 Message-Id: <20220916184922.3274016-1-slyich@gmail.com> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 X-Spam-Status: No, score=-9.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergei Trofimovich via Gcc-patches From: Sergei Trofimovich Reply-To: Sergei Trofimovich Cc: Sergei Trofimovich Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1744153318141986318?= X-GMAIL-MSGID: =?utf-8?q?1744153318141986318?= From: Sergei Trofimovich 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/ * config/i386/t-i386: Add build-time dependencies against i386-builtin-types.inc to i386-builtins.o, i386-expand.o, i386-features.o. --- 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 \