Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps AT cygwin DOT com Delivered-To: mailing list cygwin-apps AT cygwin DOT com Date: Sun, 9 Jun 2002 01:08:06 -0400 From: Christopher Faylor To: cygwin-apps AT gcc DOT gnu DOT org Cc: cygwin-apps AT cygwin DOT com Subject: Re: [cygwin gcc-3.1] libjava/testsuite/lib/libjava.exp patch Message-ID: <20020609050806.GA27772@redhat.com> Reply-To: cygwin-apps AT cygwin DOT com Mail-Followup-To: cygwin-apps AT gcc DOT gnu DOT org, cygwin-apps AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23.1i Thanks for doing this, David. I'm not sure what the protocol should be here wrt ChangeLogs. Danny had been updating the ChangeLog.cygwin-mingw. I guess it makes sense to use that when updating the branch with unapproved changes and to use the regular ChangeLog with changes that already exist in CVS. cgf On Sun, Jun 09, 2002 at 01:02:30PM +1000, Billinghurst, David (CRTS) wrote: >Backport of 3.2 patches to cygwin gcc-3.1 branch. > >2002-06-09 David.Billinghurst > > 2002-05-09 David.Billinghurst > * testsuite/lib/libjava.exp (test_libjava_from_javac): > Append .exe to executable names. Fix for cygwin. > > 2002-05-06 David.Billinghurst > * testsuite/lib/libjava.exp (libjava_arguments): Don't link > with -no-install on *-*-cygwin*. > > 2002-05-06 David.Billinghurst > * testsuite/lib/libjava.exp (test_libjava_from_source): > Add comment explaining last patch > > 2002-05-04 David Billinghurst > * testsuite/lib/libjava.exp (test_libjava_from_source): > Append .exe to executable names. If no suffix is present, > then ".exe" is added by default on win32. Harmless > elsewhere so always do it. > >Index: lib/libjava.exp >=================================================================== >RCS file: /cvs/gcc/gcc/libjava/testsuite/lib/libjava.exp,v >retrieving revision 1.33.2.5 >diff -u -r1.33.2.5 libjava.exp >--- lib/libjava.exp 17 May 2002 21:11:35 -0000 1.33.2.5 >+++ lib/libjava.exp 9 Jun 2002 02:56:11 -0000 >@@ -383,8 +383,11 @@ > } > > # Avoid libtool wrapper scripts when possible. >+ # but not if libtool warnings results in FAILs > if {$mode == "link"} { >- lappend args "additional_flags=-no-install" >+ if {! [istarget "*-*-cygwin*"]} { >+ lappend args "additional_flags=-no-install" >+ } > } > > return $args >@@ -467,6 +470,10 @@ > append executable ".o" > set target object > } else { >+ # DOS/win32 targets default to .exe if no suffix is given >+ # We then try to delete a file that doesn't exist. It is >+ # simpler to add the suffix everywhere. >+ append executable ".exe" > set target executable > } > if { $compile_args != "" } { >@@ -691,7 +698,10 @@ > } else { > set type executable > lappend largs "additional_flags=--main=$main_name" >- set executable "${objdir}/$main_name" >+ # DOS/win32 targets default to .exe if no suffix is given >+ # We then try to delete a file that doesn't exist. It is >+ # simpler to add the suffix everywhere. >+ set executable "${objdir}/${main_name}.exe" > set mode link > }