This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [build,mingw32] Build compiler with -D__USE_MINGW_ACCESS so that it works on Vista


> From: François-Xavier Coudert
> Sent: Thursday, 6 September 2007 9:56 p.m.
> 
> The Windows access() function changed behaviour with Vista: instead of
> ignoring X_OK (Windows doesn't check for execute permission), it now
> causes an invalid parameter error. This in turns can cause weird
> errors (see PR). Danny is the author of the PR analysis and indicated
> that building the compiler with -D__USE_MINGW_ACCESS solves this
> problem.
> 
> This patch does exactly this, by adding a host makefile fragment for
> mingw. This fixes the reporter's problem, and was bootstrapped on
> i386-pc-mingw32.
> 
> OK to commit?

OK by me.  
But see duplicate PR 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30972
where other approaches have been suggested.

Thanks.
Danny

> 
> FX
> 


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