diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-07 20:06:37 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-07 20:06:37 +0000 |
commit | e1a7f2e113f8dc4934923ac951abc7ca0e98792d (patch) | |
tree | a4b3fcf74170d2dac98b9e8a660cf1b1fb26b7b6 /gcc/errors.c | |
parent | 891a173212c96e32e56c79008c02e139679736f6 (diff) | |
download | gcc-e1a7f2e113f8dc4934923ac951abc7ca0e98792d.tar.gz |
* errors.c: Don't include coretypes.h or tm.h.
(trim_filename): Use IS_DIR_SEPARATOR.
* Makefile.in: Update dependencies of errors.o and
$(BUILD_PREFIX_1)errors.o.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72200 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/errors.c')
-rw-r--r-- | gcc/errors.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/errors.c b/gcc/errors.c index 6cbc29c47e3..09504d39d86 100644 --- a/gcc/errors.c +++ b/gcc/errors.c @@ -25,8 +25,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "config.h" #include "system.h" -#include "coretypes.h" -#include "tm.h" #include "errors.h" /* Set this to argv[0] at the beginning of main. */ @@ -116,11 +114,7 @@ trim_filename (const char *name) p++, q++; /* Now go backwards until the previous directory separator. */ - while (p > name && p[-1] != DIR_SEPARATOR -#ifdef DIR_SEPARATOR_2 - && p[-1] != DIR_SEPARATOR_2 -#endif - ) + while (p > name && !IS_DIR_SEPARATOR (p[-1])) p--; return p; |