This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc: stable 4.5 soon?


On Thu, 2010-10-07 at 13:20 -0500, Yaakov (Cygwin/X) wrote:
> Dave,
> 
> I have been using a gcc-4.5.1 built with your 4.5.0 patchset for some
> time.  Besides the issues I noted back in August[1], I have been pleased
> with its performance.  Any chance we can get a stable 4.5.1 soon with at
> least the easier issues noted therein fixed?
> 
> [1] http://cygwin.com/ml/cygwin/2010-08/msg00412.html

I finally managed to fix the GCJ tools; what I didn't realize is that
libgcj uses its own NIO code instead of GNU Classpath's.  Patch
attached; this *replaces* classpath-0.98-FIONREAD.patch.

Could we get a timeframe on a stable 4.5.1 including this patch?


Yaakov

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35536

--- origsrc/gcc-4.5.1/libjava/gnu/java/nio/channels/natFileChannelPosix.cc	2007-04-02 20:05:50.000000000 -0500
+++ src/gcc-4.5.1/libjava/gnu/java/nio/channels/natFileChannelPosix.cc	2010-10-27 13:39:34.044718100 -0500
@@ -386,7 +386,7 @@ FileChannelImpl::available (void)
 
 #if defined (FIONREAD)
   r = ::ioctl (fd, FIONREAD, &num);
-  if (r == -1 && errno == ENOTTY)
+  if (r == -1 && (errno == ENOTTY || errno == EINVAL))
     {
       // If the ioctl doesn't work, we don't care.
       r = 0;

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]