aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-04-19 16:28:05 -0400
committerDJ Delorie <dj@gcc.gnu.org>2001-04-19 16:28:05 -0400
commit45936a85bc20fdfa776dbd17069c941806b45420 (patch)
treecf6e83402e0ab4fcad7565cb7dd117ec00d26693 /gcc/config/i386
parent57883c536c6b7c02f5a1af6dc734b8000ad170e2 (diff)
downloadgcc-45936a85bc20fdfa776dbd17069c941806b45420.zip
gcc-45936a85bc20fdfa776dbd17069c941806b45420.tar.gz
gcc-45936a85bc20fdfa776dbd17069c941806b45420.tar.bz2
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
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/cygwin.h2
-rw-r--r--gcc/config/i386/djgpp.h5
-rw-r--r--gcc/config/i386/mingw32.h4
-rw-r--r--gcc/config/i386/xm-cygwin.h2
-rw-r--r--gcc/config/i386/xm-djgpp.h4
-rw-r--r--gcc/config/i386/xm-mingw32.h2
6 files changed, 9 insertions, 10 deletions
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 <stdio.h>
#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 ';'