From 6609be22531f447aeddbb3f670ad7883036cb23f Mon Sep 17 00:00:00 2001 From: ktietz Date: Wed, 25 Mar 2009 17:41:58 +0000 Subject: [PATCH] 2009-03-25 Kai Tietz PR/39518 * doc/invoke.texi (-mconsole): New. (-mcygwin): New. (-mno-cygwin): New. (-mdll): New. (-mnop-fun-dllimport): New. (-mthread): New. (-mwin32): New. (-mwindows): New. (sub section "i386 and x86-64 Windows Options"): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145070 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 13 ++++++++++ gcc/doc/invoke.texi | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 83 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8eeb1053050..1b7d9028a86 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,16 @@ +2009-03-25 Kai Tietz + + PR/39518 + * doc/invoke.texi (-mconsole): New. + (-mcygwin): New. + (-mno-cygwin): New. + (-mdll): New. + (-mnop-fun-dllimport): New. + (-mthread): New. + (-mwin32): New. + (-mwindows): New. + (sub section "i386 and x86-64 Windows Options"): New. + 2009-03-25 Ralf Corsépius * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index efef455d6a8..31739fc9539 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -826,6 +826,10 @@ See RS/6000 and PowerPC Options. @emph{x86-64 Options} See i386 and x86-64 Options. +@emph{i386 and x86-64 Windows Options} +@gccoptlist{-mconsole -mcygwin -mno-cygwin -mdll +-mnop-fun-dllimport -mthread -mwin32 -mwindows} + @emph{Xstormy16 Options} @gccoptlist{-msim} @@ -8827,6 +8831,7 @@ platform. * H8/300 Options:: * HPPA Options:: * i386 and x86-64 Options:: +* i386 and x86-64 Windows Options:: * IA-64 Options:: * M32C Options:: * M32R/D Options:: @@ -9140,10 +9145,6 @@ long_calls_off} directive. Note these switches have no effect on how the compiler generates code to handle function calls via function pointers. -@item -mnop-fun-dllimport -@opindex mnop-fun-dllimport -Disable support for the @code{dllimport} attribute. - @item -msingle-pic-base @opindex msingle-pic-base Treat the register used for PIC addressing as read-only, rather than @@ -15470,6 +15471,71 @@ is defined for compatibility with Diab. These are listed under @xref{i386 and x86-64 Options}. +@node i386 and x86-64 Windows Options +@subsection i386 and x86-64 Windows Options +@cindex i386 and x86-64 Windows Options + +These additional options are available for Windows targets: + +@table @gcctabopt +@item -mconsole +@opindex mconsole +This option is available for Cygwin and MinGW targets. It +specifies that a console application is to be generated, by +instructing the linker to set the PE header subsystem type +required for console applications. +This is the default behaviour for Cygwin and MinGW targets. + +@item -mcygwin +@opindex mcygwin +This option is available for Cygwin targets. It specifies that +the Cygwin internal interface is to be used for predefined +preprocessor macros, C runtime libraries and related linker +paths and options. For Cygwin targets this is the default behaviour. +This option is deprecated and will be removed in a future release. + +@item -mno-cygwin +@opindex mno-cygwin +This option is available for Cygwin targets. It specifies that +the MinGW internal interface is to be used instead of Cygwin's, by +setting MinGW-related predefined macros and linker paths and default +library options. +This option is deprecated and will be removed in a future release. + +@item -mdll +@opindex mdll +This option is available for Cygwin and MinGW targets. It +specifies that a DLL - a dynamic link library - is to be +generated, enabling the selection of the required runtime +startup object and entry point. + +@item -mnop-fun-dllimport +@opindex mnop-fun-dllimport +This option is available for Cygwin and MinGW targets. It +specifies that the dllimport attribute should be ignored. + +@item -mthread +@opindex mthread +This option is available for MinGW targets. It specifies +that MinGW-specific thread support is to be used. + +@item -mwin32 +@opindex mwin32 +This option is available for Cygwin and MinGW targets. It +specifies that the typical Windows pre-defined macros are to +be set in the pre-processor, but does not influence the choice +of runtime library/startup code. + +@item -mwindows +@opindex mwindows +This option is available for Cygwin and MinGW targets. It +specifies that a GUI application is to be generated by +instructing the linker to set the PE header subsystem type +appropriately. +@end table + +See also under @xref{i386 and x86-64 Options} for standard options. + @node Xstormy16 Options @subsection Xstormy16 Options @cindex Xstormy16 Options -- 2.11.4.GIT