From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61658 invoked by alias); 26 Feb 2015 18:00:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 61644 invoked by uid 89); 26 Feb 2015 18:00:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout25.012.net.il Received: from mtaout25.012.net.il (HELO mtaout25.012.net.il) (80.179.55.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 26 Feb 2015 18:00:05 +0000 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NKE00E0042POK00@mtaout25.012.net.il> for gdb-patches@sourceware.org; Thu, 26 Feb 2015 19:54:39 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKE00AZC4F3VN40@mtaout25.012.net.il>; Thu, 26 Feb 2015 19:54:39 +0200 (IST) Date: Thu, 26 Feb 2015 18:00:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Enable building GDB without installed libtermcap In-reply-to: <54EF5C56.9010101@redhat.com> To: Pedro Alves Cc: bernd.edlinger@hotmail.de, gdb-patches@sourceware.org, dje@google.com, vapier@gentoo.org Reply-to: Eli Zaretskii Message-id: <83bnkg5z9q.fsf@gnu.org> References: <54EB4FDF.1060909@redhat.com> <54EB513A.8050706@redhat.com> <54EF5C56.9010101@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00779.txt.bz2 > Date: Thu, 26 Feb 2015 17:48:06 +0000 > From: Pedro Alves > CC: GDB Patches , Doug Evans , Mike Frysinger > > My idea to work around that is to simply use __attribute__((weak)). > Of all supported hosts > (https://sourceware.org/gdb/wiki/Systems#Supported_Hosts), > Windows/PE/COFF would be the one that I'd be worried about WRT use of > weak, but the limited weak support in PE/COFF seems to work here. A > cross build using x86_64-w64-mingw32 on Fedora 20 builds fine with > this. With what version of GCC? Quick testing indicates that 4.8.1 supports that, but 3.4.2 doesn't. Which version of GCC is the minimal one we want to support? Or how about making this conditional on C++?