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]

[build,mingw32] Build compiler with -D__USE_MINGW_ACCESS so that it works on Vista


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?

FX

Attachment: pr33281.ChangeLog
Description: Binary data

Attachment: pr33281.diff
Description: Binary data


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