diff options
author | DJ Delorie <dj@redhat.com> | 2001-04-19 16:28:05 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2001-04-19 16:28:05 -0400 |
commit | 45936a85bc20fdfa776dbd17069c941806b45420 (patch) | |
tree | cf6e83402e0ab4fcad7565cb7dd117ec00d26693 /gcc/collect2.c | |
parent | 57883c536c6b7c02f5a1af6dc734b8000ad170e2 (diff) | |
download | gcc-45936a85bc20fdfa776dbd17069c941806b45420.tar.gz |
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/collect2.c')
-rw-r--r-- | gcc/collect2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 732ed4b3425..63ec00dacfd 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -652,8 +652,8 @@ find_a_file (pprefix, name) if (debug) fprintf (stderr, "Looking for '%s'\n", name); -#ifdef EXECUTABLE_SUFFIX - len += strlen (EXECUTABLE_SUFFIX); +#ifdef HOST_EXECUTABLE_SUFFIX + len += strlen (HOST_EXECUTABLE_SUFFIX); #endif temp = xmalloc (len); @@ -676,11 +676,11 @@ find_a_file (pprefix, name) return temp; } -#ifdef EXECUTABLE_SUFFIX +#ifdef HOST_EXECUTABLE_SUFFIX /* Some systems have a suffix for executable files. So try appending that. */ strcpy (temp, name); - strcat (temp, EXECUTABLE_SUFFIX); + strcat (temp, HOST_EXECUTABLE_SUFFIX); if (access (temp, X_OK) == 0) return temp; @@ -702,10 +702,10 @@ find_a_file (pprefix, name) && access (temp, X_OK) == 0) return temp; -#ifdef EXECUTABLE_SUFFIX +#ifdef HOST_EXECUTABLE_SUFFIX /* Some systems have a suffix for executable files. So try appending that. */ - strcat (temp, EXECUTABLE_SUFFIX); + strcat (temp, HOST_EXECUTABLE_SUFFIX); if (stat (temp, &st) >= 0 && ! S_ISDIR (st.st_mode) |