From patchwork Mon Aug 7 11:07:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Arsen_Arsenovi=C4=87?= X-Patchwork-Id: 131873 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp1400863vqr; Mon, 7 Aug 2023 05:09:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBeJImhJJf2zsDOVqWuZ4RFCz5uVxjNYUIPs4AU2GGONLgdRF8sMd5BvUibpEqf7wNgtXk X-Received: by 2002:a50:fb81:0:b0:523:a21:eda with SMTP id e1-20020a50fb81000000b005230a210edamr7939390edq.7.1691410167609; Mon, 07 Aug 2023 05:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691410167; cv=none; d=google.com; s=arc-20160816; b=ZJAxMQUUoIfmw7M9rIZF1QopZYCmlPWfOnwV/EIL9JK1HqmoKYVJId8uAtYFPU6cmh MH70NPQ5lxn2WTJtM5b8iwOP7/TrYkVNratGBND2Z98vlg28egCLRj9S/9G3I60/7ov3 ErnzvsyDjoLLitWeSj3/Gog03+jRQNa3/y4EI7IO2x1ukEFSqwMuQCXgUXZh7aWrL0Ny 8rqEu6hOx4IFR4LYhlJlGJRpNX6gPBoYsaiS9hXkJ9TVXQaQb12mABTXlAFGtDWsrwfi PssKp0k5WudHFfqwCgRuWHj1FZ6//26kbdd56d7hwWrHUugPwYfoLM11WQdWDmo1t3pi EThw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=2M9dDvJRd/3f7lxkG3NfUzk/DuxbffqEkSn+SDO9bNA=; fh=+/06BK1tub1n8r2Q1TBdMEX0yuvX067OxtwBDdGkAkk=; b=bMHJPLfUDVK+YYn0eXIMF7E4MqISYcB5WAtxRo4EzvVlD2x0RHYJTjXSJlXWOlKk4R zBvEX4RpsA7RRqWdTRHr4TiXwUQdIen1dvCU99Nw74lHFYhzSuYC6nJICmSqHrPvpfnP 2MGbTEWE8wpmOoXOaSt/0miTrB0LlOiJ+wpBmBbeIrD83khJmOGXr7l/vGXFq1rmPy3v J1bImQw6sEZQ7U5OI5G3M8M55AeffuNgOAij5KLaLZ8VoKg2gohCELSgeFeYYd/Ofc6/ sOTR3YEwihdIIfskWjGq7DqgMpur6nSuvPlf+eooy9qdsCX35axmM5YPRtWYOQSHtCR3 irEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="k/sVOnFy"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j6-20020a50ed06000000b005232e02b60bsi2801325eds.39.2023.08.07.05.09.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 05:09:27 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b="k/sVOnFy"; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8F0163900A58 for ; Mon, 7 Aug 2023 11:38:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8F0163900A58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1691408300; bh=2M9dDvJRd/3f7lxkG3NfUzk/DuxbffqEkSn+SDO9bNA=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=k/sVOnFyry6V9TpbhZvpuofJl5L/WdR7jZFSD3O8KvufOibPm6V4xnsJJGC1DVUnJ kz3qLpMumNTNSqjDpDbcNPpiAnRg2YNHaxR/fN0c0ZsSGies4ZKSK3rArfIJ7H54OX lwDfRhivpDy7wwA4cABOmitakoxrR+itcdi8Qcws= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) by sourceware.org (Postfix) with ESMTPS id 2E7823857C51; Mon, 7 Aug 2023 11:19:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2E7823857C51 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4RKDP24c9hz9sn2; Mon, 7 Aug 2023 13:19:34 +0200 (CEST) To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: =?utf-8?q?Martin_Storsj=C3=B6?= Subject: [PATCH 22/45] mh-mingw: Set __USE_MINGW_ACCESS in missed C++ flags variables Date: Mon, 7 Aug 2023 13:07:25 +0200 Message-ID: <20230807111029.2320238-23-arsen@aarsen.me> In-Reply-To: <20230807111029.2320238-1-arsen@aarsen.me> References: <20230807111029.2320238-1-arsen@aarsen.me> MIME-Version: 1.0 X-Rspamd-Queue-Id: 4RKDP24c9hz9sn2 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: =?utf-8?q?Arsen_Arsenovi=C4=87_via_Binutils?= From: =?utf-8?q?Arsen_Arsenovi=C4=87?= Reply-To: =?utf-8?q?Arsen_Arsenovi=C4=87?= Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773572107831569829 X-GMAIL-MSGID: 1773572107831569829 From: Martin Storsjö This is similar to what was done in eea4e2ff0a3f5e7f37df204c070cc5d9ef339e6e (where it was added to STAGE*_CXXFLAGS), but this adds the flag to the CXXFLAGS and BOOT_CXXFLAGS variables too (as it's already added to CFLAGS and BOOT_CFLAGS). 2021-04-09 Martin Storsjö config/ChangeLog: * mh-mingw: Set __USE_MINGW_ACCESS in missed C++ flags variables --- config/mh-mingw | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/mh-mingw b/config/mh-mingw index a795096f038..e91367a7112 100644 --- a/config/mh-mingw +++ b/config/mh-mingw @@ -1,7 +1,9 @@ # Add -D__USE_MINGW_ACCESS to enable the built compiler to work on Windows # Vista (see PR33281 for details). BOOT_CFLAGS += -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format +BOOT_CXXFLAGS += -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format CFLAGS += -D__USE_MINGW_ACCESS +CXXFLAGS += -D__USE_MINGW_ACCESS STAGE1_CXXFLAGS += -D__USE_MINGW_ACCESS STAGE2_CXXFLAGS += -D__USE_MINGW_ACCESS STAGE3_CXXFLAGS += -D__USE_MINGW_ACCESS