From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26301 invoked by alias); 15 Aug 2011 07:42:08 -0000 Received: (qmail 26247 invoked by uid 22791); 15 Aug 2011 07:41:47 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 15 Aug 2011 07:41:32 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id CE35F2CCBFF; Mon, 15 Aug 2011 09:41:29 +0200 (CEST) Date: Mon, 15 Aug 2011 07:42:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: GCC dependencies (attn David Billinghurst) Message-ID: <20110815074129.GB25129@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <1311736317.5672.85.camel@YAAKOV04> <4E41804B.9060806@gmail.com> <1313150949.7828.18.camel@YAAKOV04> <1313152852.7828.40.camel@YAAKOV04> <20110813141124.GE4098@calimero.vinschen.de> <1313350188.3232.20.camel@YAAKOV04> <1313380984.3232.37.camel@YAAKOV04> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1313380984.3232.37.camel@YAAKOV04> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com X-SW-Source: 2011-08/txt/msg00174.txt.bz2 On Aug 14 23:03, Yaakov (Cygwin/X) wrote: > On Sun, 2011-08-14 at 14:29 -0500, Yaakov (Cygwin/X) wrote: > > On Sat, 2011-08-13 at 16:11 +0200, Corinna Vinschen wrote: > > > > BTW, for those interested, I'm already working on updating the Fedora > > > > Cygwin toolchain to match the recent binutils/gdb releases and add the > > > > --large-address-aware patch, along with restoring cygwin-gcc-java for > > > > F15. > > > > FYI, this has been pushed to the servers now. > > > > > There's a small glitch in the cross toolchain: > > > > > > $ i686-pc-cygwin-gcc foo.c -o foo > > > $ ls foo* > > > foo foo.c > > > > Confirmed, and now I see that the same happens with Fedora's > > mingw32-gcc. > > > > > Since foo is a Cygwin executable, shouldn't gcc append .exe? > > > > This would make sense. Since mingw32-gcc does the same thing, I'll > > guess that the .exe magic was only implemented for a native compiler. > > > > Looking at the code, the .exe handling is added in gcc/gcc.c. There are > > two macros: HOST_EXECUTABLE_SUFFIX (which adds .exe to the commands it > > calls (cc1/as/collect2/ld), and TARGET_EXECUTABLE_SUFFIX, which is used > > only for and in convert_filename() to change the output filename. But > > the latter is only used if: > > > > /* By default there is no special suffix for target executables. */ > > /* FIXME: when autoconf is fixed, remove the host check - dj */ > > #if defined(TARGET_EXECUTABLE_SUFFIX) && defined(HOST_EXECUTABLE_SUFFIX) > > #define HAVE_TARGET_EXECUTABLE_SUFFIX > > #endif > > > > I may be new to the GCC code, but that just looks bogus. On Linux, > > HOST_EXECUTABLE_SUFFIX is obviously empty, but why should that control > > HAVE_TARGET_EXECUTABLE_SUFFIX? > > > > I've made a patch to change that, and am rebuilding cygwin-gcc with that > > now. If it works (and I don't see why it won't), I'll go ahead and > > respin releases with the patch. > > cygwin-gcc 4.5.3-4 is now available for both releases on both arches. I > still need to test my patch (for trunk, attached) in other > configurations, but AFAICS it fixes the issue you reported. WJFFM, thank you! Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat