[RFA] Major debugging breakage

Christopher Faylor cgf@redhat.com
Sun Jan 13 17:35:00 GMT 2002


On Sun, Jan 13, 2002 at 01:45:37PM -0800, Zack Weinberg wrote:
>On Fri, Jan 11, 2002 at 10:58:21PM -0500, Christopher Faylor wrote:
>> On Thu, Jan 10, 2002 at 02:26:08PM -0800, Zack Weinberg wrote:
>> >On Thu, Jan 10, 2002 at 05:08:20PM -0500, Christopher Faylor wrote:
>> >> 
>> >> Ok.  We've admitted defeat on this one.  Windows 9x wins.  Sigh.
>> >> 
>> >> So we have to turn off this feature for all Windows platforms since it
>> >> is possible that a gcc built on Windows NT (where mmap works fine) will
>> >> be run on Windows 98 (where it doesn't).
>> >
>> >Isn't there a way to determine at run time which version of Windows we
>> >are executing under?
>> 
>> Looking at the code again, I think it would be possible to do something
>> that would be minimally intrusive if you don't mind an
>> 
>> #ifdef _WIN32
>> #include <windows.h>
>> #endif
>> 
>> in that file.
>> 
>> I guess I didn't do it originally because it was basically an admission
>> of defeat.  :-)
>
>Yeah, that would be fine. Please try to do it by defining some sort of
>macro to perform the test at the top of the file, then using it below.

Yep.  That's exactly what I've done.  I'm rebuilding things now.

cgf



More information about the Gcc mailing list