From f3f1190dd993322127712295e61767cca15e2b84 Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Wed, 27 Mar 2002 09:51:53 +0000 Subject: [PATCH] cygwin.h (TARGET_DLL, [...]): Remove unused switches. * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32, TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches. (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS): Remove unnecessary masks. (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit. (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin, -mwindows, -mdll switches and their negations. From-SVN: r51440 --- gcc/ChangeLog | 10 ++++++++++ gcc/config/i386/cygwin.h | 38 ++++++++++++++------------------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9cb867300f8..d7bc10ec360 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2002-03-27 Danny Smith + + * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32, + TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches. + (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS): + Remove unnecessary masks. + (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit. + (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin, + -mwindows, -mdll switches and their negations. + 2002-03-27 Neil Booth * gcc-common.c (lang_mark_false_label_stack): Remove. diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 43e5bf4be3b..1e2ff7b15e9 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -32,34 +32,24 @@ Boston, MA 02111-1307, USA. */ #include "i386/gas.h" #include "dbxcoff.h" -/* Augment TARGET_SWITCHES with the cygwin/no-cygwin options. */ -#define MASK_WIN32 0x40000000 /* Use -lming32 interface */ -#define MASK_CYGWIN 0x20000000 /* Use -lcygwin interface */ -#define MASK_WINDOWS 0x10000000 /* Use windows interface */ -#define MASK_DLL 0x08000000 /* Use dll interface */ -#define MASK_NOP_FUN_DLLIMPORT 0x20000 /* Ignore dllimport for functions */ - -#define TARGET_WIN32 (target_flags & MASK_WIN32) -#define TARGET_CYGWIN (target_flags & MASK_CYGWIN) -#define TARGET_WINDOWS (target_flags & MASK_WINDOWS) -#define TARGET_DLL (target_flags & MASK_DLL) +/* Masks for subtarget switches used by other files. */ +#define MASK_NOP_FUN_DLLIMPORT 0x08000000 /* Ignore dllimport for functions */ + +/* Used in winnt.c. */ #define TARGET_NOP_FUN_DLLIMPORT (target_flags & MASK_NOP_FUN_DLLIMPORT) #undef SUBTARGET_SWITCHES #define SUBTARGET_SWITCHES \ -{ "cygwin", MASK_CYGWIN, \ - N_("Use the Cygwin interface") }, \ -{ "no-cygwin", MASK_WIN32, \ - N_("Use the Mingw32 interface") }, \ -{ "windows", MASK_WINDOWS, N_("Create GUI application") }, \ -{ "no-win32", -MASK_WIN32, N_("Don't set Windows defines") },\ -{ "win32", 0, N_("Set Windows defines") }, \ -{ "console", -MASK_WINDOWS, \ - N_("Create console application") }, \ -{ "dll", MASK_DLL, N_("Generate code for a DLL") }, \ -{ "nop-fun-dllimport", MASK_NOP_FUN_DLLIMPORT, \ - N_("Ignore dllimport for functions") }, \ -{ "no-nop-fun-dllimport", -MASK_NOP_FUN_DLLIMPORT, "" }, \ +{ "cygwin", 0, N_("Use the Cygwin interface") }, \ +{ "no-cygwin", 0, N_("Use the Mingw32 interface") }, \ +{ "windows", 0, N_("Create GUI application") }, \ +{ "no-win32", 0, N_("Don't set Windows defines") }, \ +{ "win32", 0, N_("Set Windows defines") }, \ +{ "console", 0, N_("Create console application") },\ +{ "dll", 0, N_("Generate code for a DLL") }, \ +{ "nop-fun-dllimport", MASK_NOP_FUN_DLLIMPORT, \ + N_("Ignore dllimport for functions") }, \ +{ "no-nop-fun-dllimport", -MASK_NOP_FUN_DLLIMPORT, "" }, \ { "threads", 0, N_("Use Mingw-specific thread support") }, #undef CPP_PREDEFINES -- 2.30.2