> -----Original Message----- > From: Brian Dessent [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 08, 2007 3:21 PM > To: Mark Mitchell > Cc: gcc@gcc.gnu.org; [EMAIL PROTECTED] > Subject: Re: MinGW, GCC Vista, > > Mark Mitchell wrote: > > > In my opinion, this is a GCC bug: there's no such thing as X_OK on > > Windows (it's not in the Microsoft headers, or documented > by Microsoft > > as part of the API), and so GCC shouldn't be using it. The Vista > > runtime library chooses to issue an error when you set > random bits in > > the mode provided to access, which is its privilege. > > > > There's a simple GCC change to fix this: have libiberty > wrap the access > > function and mask out X_OK on non-Cygwin Windows. It's > reasonable to > > put this change in libiberty, since it's job is to provide > portability > > between systems. > > This is also true, so I suppose it's not entirely correct to say that > this is not a gcc issue in the slightest. This above should indeed go > into libiberty as the long term solution.
I would have thought that too. For reference, there is this GCC bug report: <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30972> Eric Weddington