RFA: .opt files for x86, darwin and lynxos
Ranjit Mathew
rmathew@gmail.com
Thu Apr 21 06:03:00 GMT 2005
Richard Henderson wrote:
> On Wed, Apr 20, 2005 at 10:00:52PM +0100, Richard Sandiford wrote:
>
>> - i386.h provides undocumented -mwindows and -mdll options.
>> I've put these in their own file (dummy-windows.opt) so that
>> cygwin and mingw can provide properly-documented versions.
>
>
> Huh. I think perhaps that's simply a mistake. It first appears here:
>
> revision 1.5
> date: 1997/12/07 00:29:39; author: law; state: Exp; lines: +2 -0
> Merge from gcc-2.8
>
> which means it is likely that Kenner and/or ACT wrote the patch.
>
> I'd say kill that bit, but the rest is ok.
"-mwindows" is used on Cygwin/MinGW to denote that the
program will be a Win32 GUI application and not a console
application:
http://cygwin.com/cygwin-ug-net/programming.html#gcc-gui
http://mingw.org/docs.shtml#compilingandbuilding
I'm not that familiar with "-mdll", but perhaps it's
just used to create a DLL with Cygwin/MinGW instead
of an ordinary executable. These days it's simpler to
just use "gcc -shared -o foo.dll foo.c" instead.
The point of this mail is that "-mwindows" at least
is not useless and certainly should not be removed.
As for "-mdll", a Cygwin/MinGW maintainer (cgf,dannysmith)
should be able to provide a better insight.
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/
More information about the Gcc-patches
mailing list