This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: Fix regression in make_relative_prefix
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 28 Nov 2002 14:39:18 +1100 (EST)
- Subject: Patch: Fix regression in make_relative_prefix
Hello
In make_relative_prefix, checking X_OK access of prognames with an
HOST_EXECUTABLE_SUFFIX is conditional on HAVE_HOST_EXECUTABLE_SUFFIX. However
this is not defined in libiberty code (although it was and still is defined in
gcc.c).
This patch defines it for those targets that need it.
libiberty/ChangeLog
28-11-2002 Danny Smith <dannysmith@users.sourceforge.net>
* make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
Define for hosts with HOST_EXECUTABLE_SUFFIX.
*** make-relative-prefix.c.orig Thu Nov 28 02:31:29 2002
--- make-relative-prefix.c Thu Nov 28 03:16:37 2002
*************** can be found, return @code{NULL}.
*** 67,72 ****
--- 67,73 ----
#if defined (_WIN32) || defined (__MSDOS__) \
|| defined (__DJGPP__) || defined (__OS2__)
# define HAVE_DOS_BASED_FILE_SYSTEM
+ # define HAVE_HOST_EXECUTABLE_SUFFIX
# define HOST_EXECUTABLE_SUFFIX ".exe"
# ifndef DIR_SEPARATOR_2
# define DIR_SEPARATOR_2 '\\'
http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
- Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper!