From: Alan Modra Date: Wed, 31 Jan 2001 06:02:18 +0000 (+0000) Subject: Another HAVE_DOS_BASED_FILE_SYSTEM check. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=956eedd4dc39168a5841975ee0fbf2da8301559f;p=binutils-gdb.git Another HAVE_DOS_BASED_FILE_SYSTEM check. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 8430d4ef5a5..dddbb35e87b 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2001-01-31 Steve deRosier + + * ieee.c (ieee_add_bb11): Don't check for backslashes + unless HAVE_DOS_BASED_FILE_SYSTEM is defined. + 2001-01-24 Mark Elbrecht * ieee.c: Update copyright. diff --git a/binutils/ieee.c b/binutils/ieee.c index efd3ba3a939..52149b2261b 100644 --- a/binutils/ieee.c +++ b/binutils/ieee.c @@ -5204,15 +5204,20 @@ ieee_add_bb11 (info, sec, low, high) } else { - const char *filename, *modname, *backslash; + const char *filename, *modname; +#ifdef HAVE_DOS_BASED_FILE_SYSTEM + const char *backslash; +#endif char *c, *s; /* Start the enclosing BB10 block. */ filename = bfd_get_filename (info->abfd); modname = strrchr (filename, '/'); +#ifdef HAVE_DOS_BASED_FILE_SYSTEM backslash = strrchr (filename, '\\'); if (modname == NULL || (backslash != NULL && backslash > modname)) modname = backslash; +#endif if (modname != NULL) ++modname;