From patchwork Fri Oct 15 16:30:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 46285 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0BB763857C7B for ; Fri, 15 Oct 2021 16:30:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0BB763857C7B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1634315453; bh=cVU3rldA4+x5+EozXnRnZGcVb57tt1fh7GNf49pv8Qk=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=vDZLN6j7F76sRCUZrAmfe99Ak7DqxqoT8rb6GIsIdI7Vkrb8eEjpfeAJsj5AUxByr ZZdJ32wpRi5kJLRYqU1b3im0iLfRgRqHZgy81Q+lRL4ZDWZIwqKtATQdofqf0UAQkp rfkUvC/8yepV170/f2Q1o5Xlgd3XUR/sP/Ja8pUU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by sourceware.org (Postfix) with ESMTPS id 197723857810 for ; Fri, 15 Oct 2021 16:30:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 197723857810 Received: by mail-wm1-x32e.google.com with SMTP id j10-20020a1c230a000000b0030d523b6693so3468032wmj.2 for ; Fri, 15 Oct 2021 09:30:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :mime-version:content-transfer-encoding; bh=cVU3rldA4+x5+EozXnRnZGcVb57tt1fh7GNf49pv8Qk=; b=QPM78zwdsiRLcM+imO8bkzblv4oNHpmxCGdwYlTQGsRx3xBEpu1riEMu1/rfI0fRWr FbQ39qKkq7hMSOY325WP21RAkRO2qCc/Ek+NOyTH4M5qOq7v1AFAiVrjDByWjPeLdPri HOkgi3iq87VA/pXa36HXZDsW/8Nj16j5h5Uq7ZhbpgzcPErS7fllHZuI1jDKdLBJI83N Mv0fHpS1o/DAxJL8H8sS7S9BBQPUK6yHYHDWTj/UW3NkpOuLgf2MbW7Akdo7tOlzBdPY tbNlo0w537CuNHO0GUA4AinL4jXIvf/uEDAno8HwwTJ0Ork1kkVTnzeHKbON+wPJInE7 J+7g== X-Gm-Message-State: AOAM532Vplr44FutACi5qRSFFXTtlNwkldfTUyjr0GOWkGYFozfgeZ1l y0iCh6lhBEuZkOTbDEGkul2wrDVcdWQwNg== X-Google-Smtp-Source: ABdhPJzRO3azEMy2ganjnYnuTcxFFqCT1b9cVRrQ7N+uU+XQ0vpMuAoreP1bYTfh10nMO1bSFCCIHA== X-Received: by 2002:a05:600c:ac1:: with SMTP id c1mr13386066wmr.99.1634315416833; Fri, 15 Oct 2021 09:30:16 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id s186sm5950648wme.14.2021.10.15.09.30.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Oct 2021 09:30:16 -0700 (PDT) X-Google-Original-From: Iain Sandoe To: gcc-patches@gcc.gnu.org Subject: [pushed] Darwin, D: Fix D bootstrap, include tm-dwarf2.h. Date: Fri, 15 Oct 2021 17:30:08 +0100 Message-Id: <20211015163008.56061-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.24.3 (Apple Git-128) MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Iain Sandoe via Gcc-patches From: Iain Sandoe Reply-To: iain@sandoe.co.uk Cc: Iain Sandoe Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" After r12-4432-g7bfe7d634f60b0a9 Darwin fails to bootstrap with D enabled since there is no definition of either DWARF2_DEBUG_INFO or PREFERRED_DEBUGGING_TYPE. Fixed here by adding the tm-dwarf2.h file to tm_d_file for Darwin. tested on x86_64-darwin, pushed to master, thanks, Iain P.S. it is not obvious to me where Linux is getting the definition from. Signed-off-by: Iain Sandoe gcc/ChangeLog: * config.gcc: Add tm-dwarf2.h to tm_d-file. --- gcc/config.gcc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/config.gcc b/gcc/config.gcc index aa5bd5d1459..3675e063a53 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -666,6 +666,7 @@ case ${target} in *-*-darwin*) tmake_file="t-darwin " tm_file="${tm_file} darwin.h" + tm_d_file="${tm_d_file} tm-dwarf2.h" darwin_os=`echo ${target} | sed 's/.*darwin\([0-9.]*\).*$/\1/'` darwin_maj=`expr "$darwin_os" : '\([0-9]*\).*'` macos_min=`expr "$darwin_os" : '[0-9]*\.\([0-9]*\).*'`