From patchwork Mon Dec 12 17:27:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= X-Patchwork-Id: 32464 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2368590wrr; Mon, 12 Dec 2022 09:29:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zwntwqW2Ra7xT/QIlMlIHVrrfsrig35PhV94pTN/HIqVTks4eRB4MCcDCvIdX97U1XdFr X-Received: by 2002:a17:907:a646:b0:7c0:a7b7:14f7 with SMTP id vu6-20020a170907a64600b007c0a7b714f7mr5080693ejc.61.1670866162606; Mon, 12 Dec 2022 09:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670866162; cv=none; d=google.com; s=arc-20160816; b=Qhezktp2UALx5D+3hZNQnyqY/PjjFqf2x1rKLqb1QBUgaZ/JioHOQfdEV8ZcYjjSRj et8PO5GBJFFg8rOTDiSHeqz5ESo8tXthys1Hm8o2EB3tmjblFb66MIQT5OdhrDbSXQUA 4uzIi4cSsLaqgt+BVdCCBCWmsxRlzX08KhtRwJdGBuu7HLlRBrhSf7brig9ABRJqrzDs S3gdl++YwXsfXnAHk+xyzcwKTeKDU7WYbDIfC2a1Es06DpTUmeOwMr2L+80c/bHP0fub zsZtDTgag2XnMn7YduUT3V1TgWjwcBKGKVxrFIzKBcNMg/Hm2BvXfPDTheYYfyzy8enj jT1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=VmGkViQi0aGuw57ijCtlMSLUPH66Uvq59k0MIjiX0eQ=; b=nQaHRwOYNKvsgPgbaum10oLxG/oq4JpFJ4Jbvd0P+7KMmJVfQArZf0bVjfDf+WO89b 9lJC3LKkkbaqAawOh6gCdiHfM3Allvfo/QIXDoOEDIwdxckNQ+zlDa0xw3mc3zFK/PEl 9/dAnALdkngvgeOMQw1RwOGjk0XPzGca/kF8sUztFfN2UWr949+iq0pGvDpssWCXCBSY jdDT5TkxejYmOZVdyc9RksuM8TM2U1nDP7bQlmRiRnBrCj+FxM81idcOFgf1JQME9BbU wVCG/htUstiFKC2AjuXHt+NygAh8+teQwCSs9UqNnlxwC5ZIscjHZj/mUqCgt7EI7geq pL6g== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id go35-20020a1709070da300b007bd6264c2dbsi6801220ejc.28.2022.12.12.09.29.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Dec 2022 09:29:22 -0800 (PST) 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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 748D2384EF61 for ; Mon, 12 Dec 2022 17:28:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.hazardy.de (mail.hazardy.de [78.94.181.132]) by sourceware.org (Postfix) with ESMTPS id 15CD63850626; Mon, 12 Dec 2022 17:28:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 15CD63850626 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=hazardy.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=hazardy.de Received: from NB-372.intranet.mimot.com (unknown [78.94.181.132]) by mail.hazardy.de (Postfix) with ESMTPSA id 27C8A7002BD; Mon, 12 Dec 2022 18:28:24 +0100 (CET) From: =?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= To: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org Cc: =?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= Subject: [PATCH] libstdc++: enable on windows Date: Mon, 12 Dec 2022 18:27:49 +0100 Message-Id: <20221212172749.49723-1-gcc@hazardy.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, 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: , 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?1752030157138573565?= X-GMAIL-MSGID: =?utf-8?q?1752030157138573565?= From: Björn Schäpers libstdc++-v3/Changelog * acinclude.m4: Add check for windows.h. * acinclude.m4: Add pecoff as FORMAT_FILE. * config.h.in: Regenerate. * configure: Regenerate. * src/libbacktrace/Makefile.am: Regenerate. * src/libbacktrace/Makefile.in: Add pecoff.c as FORMAT_FILE. Signed-off-by: Björn Schäpers --- libstdc++-v3/acinclude.m4 | 2 ++ libstdc++-v3/src/libbacktrace/Makefile.am | 1 + 2 files changed, 3 insertions(+) diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index b957c728ba1..1cfe704e637 100644 --- a/libstdc++-v3/acinclude.m4 +++ b/libstdc++-v3/acinclude.m4 @@ -4981,6 +4981,7 @@ AC_DEFUN([GLIBCXX_ENABLE_BACKTRACE], [ if test "$have_dl_iterate_phdr" = "yes"; then BACKTRACE_CPPFLAGS="$BACKTRACE_CPPFLAGS -DHAVE_DL_ITERATE_PHDR=1" fi + AC_CHECK_HEADERS(windows.h) # Check for the fcntl function. if test -n "${with_target_subdir}"; then @@ -5026,6 +5027,7 @@ glibcxx_cv_sys_filetype=$filetype]) FORMAT_FILE= case "$glibcxx_cv_sys_filetype" in elf*) FORMAT_FILE="elf.lo" ;; +pecoff*) FORMAT_FILE="pecoff.lo" ;; *) AC_MSG_WARN([could not determine output file type]) FORMAT_FILE="unknown.lo" enable_libstdcxx_backtrace=no diff --git a/libstdc++-v3/src/libbacktrace/Makefile.am b/libstdc++-v3/src/libbacktrace/Makefile.am index 52d8f81b97b..b34a429a21d 100644 --- a/libstdc++-v3/src/libbacktrace/Makefile.am +++ b/libstdc++-v3/src/libbacktrace/Makefile.am @@ -71,6 +71,7 @@ libstdc___libbacktrace_la_SOURCES = \ FORMAT_FILES = \ elf.c \ + pecoff.c \ unknown.c VIEW_FILES = \