This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] patch for mingw
- From: François-Xavier Coudert <Francois-Xavier dot Coudert at ens dot fr>
- To: Danny Smith <dannysmith at users dot sourceforge dot net>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, fortran at gcc dot gnu dot org
- Date: Sat, 10 Sep 2005 10:04:35 +0200
- Subject: Re: [gfortran] patch for mingw
- References: <000701c5b5b2$1ded1510$716d65da@DANNY>
> OK by me. 'windows' should be spelt 'MS Windows'
OK.
>> * acinclude.m4 (LIBGFOR_CHECK_MINGW_TARGET): Add new macro for
>> mingw targets.
>
> No, please. __MINGW32__ and __WIN32 are already predefined for target libs.
What do they refer to exactly? I guess __MINGW32__ is what i want, but is
__WIN32 a strict equivalent? Or does it include cygwin systems? What
about the difference between _WIN32 and __WIN32?
__WIN32 is found in ada front-end, while _WIN32 is found in libiberty,
libjava and libobjc (the latter with "#if defined (_WIN32) || defined
(__WIN32__) || defined (WIN32)").
I guess a brief summary of which means what would be in order.
> I was planning to submit the code you cut from the bug report as a
> libiberty patch once 4.2 was open. [...] A libiberty version, however,
> would not help libgfortran.
Right.
As for the code itself, having a fallback case for older win versions
would be nice. Is there a way to do this?
--
FX