This is the mail archive of the cygwin-patches@cygwin.com 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: [patch] gcc4 fixes


On Wed, May 18, 2005 at 10:01:33AM +0200, Corinna Vinschen wrote:
>On May 17 15:50, Brian Dessent wrote:
>> diff -u -r1.109 mmap.cc
>> --- mmap.cc	2 May 2005 03:50:07 -0000	1.109
>> +++ mmap.cc	17 May 2005 22:40:14 -0000
>> @@ -500,14 +500,14 @@
>>      }
>>  }
>>  
>> +static DWORD granularity = getshmlba ();
>> +
>>  extern "C" void *
>>  mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off)
>>  {
>>    syscall_printf ("addr %x, len %u, prot %x, flags %x, fd %d, off %D",
>>  		  addr, len, prot, flags, fd, off);
>>  
>> -  static DWORD granularity = getshmlba ();
>> -
>>    /* Error conditions according to SUSv2 */
>>    if (off % getpagesize ()
>>        || (!(flags & MAP_SHARED) && !(flags & MAP_PRIVATE))
>> 
>
>While this might help to avoid... something, I'm seriously wondering
>what's wrong with this expression.  Why does each new version of gcc
>add new incompatibilities?

Well, it might actually be "a gcc bug".

cgf


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