From 45936a85bc20fdfa776dbd17069c941806b45420 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 19 Apr 2001 16:28:05 -0400 Subject: vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to TARGET_OBJECT_SUFFIX and... * config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to TARGET_OBJECT_SUFFIX and TARGET_EXECUTABLE_SUFFIX. * config/i386/cygwin.h: Likewise. * config/i386/mingw32.h: Likewise. * config/vax/vms.h: Likewise. * config/i386/djgpp.h: Remove NO_AUTO_EXE_SUFFIX. * config/alpha/xm-vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to HOST_OBJECT_SUFFIX and HOST_EXECUTABLE_SUFFIX. * config/i386/xm-cygwin.h: Likewise. * config/i386/xm-djgpp.h: Likewise. * config/i386/xm-mingw32.h: Likewise. * config/vax/xm-vms.h: Likewise. * mkdeps.c (deps_add_default_target): Use TARGET_OBJECT_SUFFIX instead of OBJECT_SUFFIX. * collect2.c (find_a_file): Look for files matching the extension HOST_EXECUTABLE_SUFFIX instead of EXECUTABLE_SUFFIX. * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Depend on TARGET_EXECUTABLE_SUFFIX. (find_a_file): Use HOST_EXECUTABLE_SUFFIX. (make_relative_prefix): Likewise. (convert_filename): Use TARGET_ suffixes throughout. Remove NO_AUTO_EXE_SUFFIX. (process_command): Likewise. (do_spec_1): Likewise. * java/lang.c (init_parse): Likewise. * gcc.texi : Document four new options matching the pattern (HOST|TARGET)_(OBJECT|EXECUTABLE)_SUFFIX. Remove documentation for deleted macros OBJECT_SUFFIX and EXECUTABLE_SUFFIX. Remove documentation for NO_AUTO_EXE_SUFFIX. From-SVN: r41428 --- gcc/config/alpha/vms.h | 3 +++ gcc/config/alpha/xm-vms.h | 4 ++-- gcc/config/i386/cygwin.h | 2 ++ gcc/config/i386/djgpp.h | 5 ----- gcc/config/i386/mingw32.h | 4 +++- gcc/config/i386/xm-cygwin.h | 2 +- gcc/config/i386/xm-djgpp.h | 4 ++-- gcc/config/i386/xm-mingw32.h | 2 +- gcc/config/vax/vms.h | 5 ++++- gcc/config/vax/xm-vms.h | 4 ++-- 10 files changed, 20 insertions(+), 15 deletions(-) (limited to 'gcc/config') diff --git a/gcc/config/alpha/vms.h b/gcc/config/alpha/vms.h index 870acd2..1b7c64e 100644 --- a/gcc/config/alpha/vms.h +++ b/gcc/config/alpha/vms.h @@ -20,6 +20,9 @@ Boston, MA 02111-1307, USA. */ #define OPEN_VMS 1 +#define TARGET_OBJECT_SUFFIX ".obj" +#define TARGET_EXECUTABLE_SUFFIX ".exe" + /* This enables certain macros in alpha.h, which will make an indirect reference to an external symbol an invalid address. This needs to be defined before we include alpha.h, since it determines which macros diff --git a/gcc/config/alpha/xm-vms.h b/gcc/config/alpha/xm-vms.h index c65c206..08b9739 100644 --- a/gcc/config/alpha/xm-vms.h +++ b/gcc/config/alpha/xm-vms.h @@ -76,5 +76,5 @@ Boston, MA 02111-1307, USA. */ #define STDC_HEADERS 1 #define HAVE_STRINGIZE 1 -#define OBJECT_SUFFIX ".obj" -#define EXECUTABLE_SUFFIX ".exe" +#define HOST_EXECUTABLE_SUFFIX ".exe" +#define HOST_OBJECT_SUFFIX ".obj" diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 4a9b931..ba51a6f 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA. */ #define SDB_DEBUGGING_INFO #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG +#define TARGET_EXECUTABLE_SUFFIX ".exe" + #include #include "i386/gas.h" #include "dbxcoff.h" diff --git a/gcc/config/i386/djgpp.h b/gcc/config/i386/djgpp.h index 673f4f44..91940b5 100644 --- a/gcc/config/i386/djgpp.h +++ b/gcc/config/i386/djgpp.h @@ -150,11 +150,6 @@ Boston, MA 02111-1307, USA. */ unless user explicitly requests it. */ #undef LOCAL_INCLUDE_DIR -/* Do not make only .exe if no executable file suffix was specified. */ -/* Let the linker handle that. */ -#undef NO_AUTO_EXE_SUFFIX -#define NO_AUTO_EXE_SUFFIX - #undef EXTRA_SECTIONS #define EXTRA_SECTIONS in_ctor, in_dtor diff --git a/gcc/config/i386/mingw32.h b/gcc/config/i386/mingw32.h index 3958696..ba546d6 100644 --- a/gcc/config/i386/mingw32.h +++ b/gcc/config/i386/mingw32.h @@ -1,6 +1,6 @@ /* Operating system specific defines to be used when targeting GCC for hosting on Windows32, using GNU tools and the Windows32 API Library. - Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -24,6 +24,8 @@ Boston, MA 02111-1307, USA. */ #include "i386/cygwin.h" +#define TARGET_EXECUTABLE_SUFFIX ".exe" + /* Please keep changes to CPP_PREDEFINES in sync with i386/crtdll. The only difference between the two should be __MSVCRT__ needed to distinguish MSVC from CRTDLL runtime in mingw headers. */ diff --git a/gcc/config/i386/xm-cygwin.h b/gcc/config/i386/xm-cygwin.h index b4f9fed..b8187f4 100644 --- a/gcc/config/i386/xm-cygwin.h +++ b/gcc/config/i386/xm-cygwin.h @@ -19,7 +19,7 @@ along with GNU CC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#define EXECUTABLE_SUFFIX ".exe" +#define HOST_EXECUTABLE_SUFFIX ".exe" /* Even though Cygwin tries to hide the DOS based filesystem, it still shows though at times. */ diff --git a/gcc/config/i386/xm-djgpp.h b/gcc/config/i386/xm-djgpp.h index 9a711fd..c26a5cf 100644 --- a/gcc/config/i386/xm-djgpp.h +++ b/gcc/config/i386/xm-djgpp.h @@ -1,5 +1,5 @@ /* Configuration for GNU C-compiler for Intel 80386 running DJGPP. - Copyright (C) 1988, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1988, 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -21,7 +21,7 @@ Boston, MA 02111-1307, USA. */ /* Use semicolons to separate elements of a path. */ #define PATH_SEPARATOR ';' -#define EXECUTABLE_SUFFIX ".exe" +#define HOST_EXECUTABLE_SUFFIX ".exe" /* Even though we support "/", allow "\" since everybody tests both. */ #define DIR_SEPARATOR '/' diff --git a/gcc/config/i386/xm-mingw32.h b/gcc/config/i386/xm-mingw32.h index f295543..b7bbe5f 100644 --- a/gcc/config/i386/xm-mingw32.h +++ b/gcc/config/i386/xm-mingw32.h @@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA. */ like Cygwin does. */ #define HAVE_DOS_BASED_FILE_SYSTEM -#define EXECUTABLE_SUFFIX ".exe" +#define HOST_EXECUTABLE_SUFFIX ".exe" #undef PATH_SEPARATOR #define PATH_SEPARATOR ';' diff --git a/gcc/config/vax/vms.h b/gcc/config/vax/vms.h index 08e7453..3c0bec3 100644 --- a/gcc/config/vax/vms.h +++ b/gcc/config/vax/vms.h @@ -1,5 +1,5 @@ /* Output variables, constants and external declarations, for GNU compiler. - Copyright (C) 1988, 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1988, 1994, 1995, 1996, 1997, 1999, 2001 Free Software Foundation, Inc. This file is part of GNU CC. @@ -20,6 +20,9 @@ Boston, MA 02111-1307, USA. */ #define VMS_TARGET +#define TARGET_EXECUTABLE_SUFFIX ".exe" +#define TARGET_OBJECT_SUFFIX ".obj" + /* This enables certain macros in vax.h, which will make an indirect reference to an external symbol an invalid address. This needs to be defined before we include vax.h, since it determines which macros diff --git a/gcc/config/vax/xm-vms.h b/gcc/config/vax/xm-vms.h index 5cda840..8433990 100644 --- a/gcc/config/vax/xm-vms.h +++ b/gcc/config/vax/xm-vms.h @@ -170,5 +170,5 @@ Boston, MA 02111-1307, USA. */ #pragma message disable (undefescap) #endif -#define OBJECT_SUFFIX ".obj" -#define EXECUTABLE_SUFFIX ".exe" +#define HOST_EXECUTABLE_SUFFIX ".exe" +#define HOST_OBJECT_SUFFIX ".obj" -- cgit v1.1