From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54550 invoked by alias); 2 May 2017 12:11:21 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 54483 invoked by uid 89); 2 May 2017 12:11:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.6 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=1580, Hx-spam-relays-external:ESMTPA, HContent-Transfer-Encoding:8bit X-HELO: out4-smtp.messagingengine.com Received: from out4-smtp.messagingengine.com (HELO out4-smtp.messagingengine.com) (66.111.4.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 02 May 2017 12:11:11 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id F152B20B5E for ; Tue, 2 May 2017 08:11:09 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 02 May 2017 08:11:09 -0400 X-ME-Sender: Received: from [192.168.1.131] (unknown [78.194.250.245]) by mail.messagingengine.com (Postfix) with ESMTPA id 959962473F for ; Tue, 2 May 2017 08:11:09 -0400 (EDT) From: =?UTF-8?Q?Hugo_Beauz=c3=a9e-Luyssen?= To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix cross compiling to x86_64-w64-mingw32 Message-ID: <1a17d617-2e2d-3a15-4c25-4239291dadc8@beauzee.fr> Date: Tue, 02 May 2017 12:12:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2017-05/txt/msg00088.txt.bz2 This patch fixes cross compiling to x86_64-w64-mingw32 See https://github.com/Alexpux/MINGW-packages/issues/1580 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69506 My apologies if I missed something in the contributing/sending a patch guidelines. Regards, Index: libstdc++-v3/config/os/mingw32-w64/os_defines.h =================================================================== --- libstdc++-v3/config/os/mingw32-w64/os_defines.h (revision 247489) +++ libstdc++-v3/config/os/mingw32-w64/os_defines.h (working copy) @@ -76,6 +76,8 @@ #ifdef __x86_64__ #define _GLIBCXX_LLP64 1 +// See libstdc++/69506 +#define _GLIBCXX_USE_WEAK_REF 0 #endif // Enable use of GetModuleHandleEx (requires Windows XP/2003) in