Commit d5b6516d by Mumit Khan Committed by Mumit Khan

cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and IS_DIR_SEPARATOR macros.

2000-01-06  Mumit Khan  <khan@xraylith.wisc.edu>

	* cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
	IS_DIR_SEPARATOR macros.
	* collect2.c: Likewise.
	* cppinit.c: Likewise.
	* dwarf2out.c: Likewise.
	* gcc.c: Likewise.
	* gcov.c: Likewise.
	* prefix.c: Likewise.
	* rtl.c: Likewise.
	* toplev.c: Likewise.
	* system.h: And move to here.

From-SVN: r31264
parent 44545f27
2000-01-06 Mumit Khan <khan@xraylith.wisc.edu> 2000-01-06 Mumit Khan <khan@xraylith.wisc.edu>
* cccp.c: Delete PATH_SEPARATOR, DIR_SEPARATOR and
IS_DIR_SEPARATOR macros.
* collect2.c: Likewise.
* cppinit.c: Likewise.
* dwarf2out.c: Likewise.
* gcc.c: Likewise.
* gcov.c: Likewise.
* prefix.c: Likewise.
* rtl.c: Likewise.
* toplev.c: Likewise.
* system.h: And move to here.
* prefix.c (update_path): Fix typo in variable name. * prefix.c (update_path): Fix typo in variable name.
2000-01-06 Richard Henderson <rth@cygnus.com> 2000-01-06 Richard Henderson <rth@cygnus.com>
......
...@@ -46,16 +46,6 @@ typedef unsigned char U_CHAR; ...@@ -46,16 +46,6 @@ typedef unsigned char U_CHAR;
# define STANDARD_INCLUDE_DIR "/usr/include" # define STANDARD_INCLUDE_DIR "/usr/include"
#endif #endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
# define PATH_SEPARATOR ':'
#endif
/* By default, a slash separates directory names. */
#ifndef DIR_SEPARATOR
# define DIR_SEPARATOR '/'
#endif
/* By default, the suffix for object files is ".o". */ /* By default, the suffix for object files is ".o". */
#ifdef OBJECT_SUFFIX #ifdef OBJECT_SUFFIX
# define HAVE_OBJECT_SUFFIX # define HAVE_OBJECT_SUFFIX
......
...@@ -49,18 +49,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -49,18 +49,6 @@ Boston, MA 02111-1307, USA. */
#include "obstack.h" #include "obstack.h"
#include "intl.h" #include "intl.h"
#ifndef DIR_SEPARATOR
# define DIR_SEPARATOR '/'
# define IS_DIR_SEPARATOR(ch) ((ch) == '/')
#else /* DIR_SEPARATOR */
# ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
# else /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
# endif /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
#endif /* DIR_SEPARATOR */
/* Obstack allocation and deallocation routines. */ /* Obstack allocation and deallocation routines. */
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #define obstack_chunk_free free
...@@ -648,11 +636,6 @@ is_ctor_dtor (s) ...@@ -648,11 +636,6 @@ is_ctor_dtor (s)
return 0; return 0;
} }
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
/* We maintain two prefix lists: one from COMPILER_PATH environment variable /* We maintain two prefix lists: one from COMPILER_PATH environment variable
and one from the PATH variable. */ and one from the PATH variable. */
......
...@@ -37,11 +37,6 @@ extern char *version_string; ...@@ -37,11 +37,6 @@ extern char *version_string;
#define GET_ENV_PATH_LIST(VAR,NAME) do { (VAR) = getenv (NAME); } while (0) #define GET_ENV_PATH_LIST(VAR,NAME) do { (VAR) = getenv (NAME); } while (0)
#endif #endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#ifndef STANDARD_INCLUDE_DIR #ifndef STANDARD_INCLUDE_DIR
#define STANDARD_INCLUDE_DIR "/usr/include" #define STANDARD_INCLUDE_DIR "/usr/include"
#endif #endif
......
...@@ -65,10 +65,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -65,10 +65,6 @@ Boston, MA 02111-1307, USA. */
# define assert(e) do { if (! (e)) abort (); } while (0) # define assert(e) do { if (! (e)) abort (); } while (0)
#endif #endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* Decide whether we want to emit frame unwind information for the current /* Decide whether we want to emit frame unwind information for the current
translation unit. */ translation unit. */
......
...@@ -65,15 +65,6 @@ extern int getrusage PROTO ((int, struct rusage *)); ...@@ -65,15 +65,6 @@ extern int getrusage PROTO ((int, struct rusage *));
#define OBJECT_SUFFIX ".o" #define OBJECT_SUFFIX ".o"
#endif #endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
#ifndef VMS #ifndef VMS
/* FIXME: the location independence code for VMS is hairier than this, /* FIXME: the location independence code for VMS is hairier than this,
and hasn't been written. */ and hasn't been written. */
...@@ -82,14 +73,6 @@ extern int getrusage PROTO ((int, struct rusage *)); ...@@ -82,14 +73,6 @@ extern int getrusage PROTO ((int, struct rusage *));
#endif /* DIR_UP */ #endif /* DIR_UP */
#endif /* VMS */ #endif /* VMS */
/* Define IS_DIR_SEPARATOR. */
#ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
#else /* DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
#endif /* DIR_SEPARATOR_2 */
static char dir_separator_str[] = {DIR_SEPARATOR, 0}; static char dir_separator_str[] = {DIR_SEPARATOR, 0};
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
......
...@@ -281,10 +281,6 @@ fnotice VPROTO ((FILE *file, const char *msgid, ...)) ...@@ -281,10 +281,6 @@ fnotice VPROTO ((FILE *file, const char *msgid, ...))
va_end (ap); va_end (ap);
} }
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* More 'friendly' abort that prints the line and file. /* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */ config.h can #define abort fancy_abort if you like that sort of thing. */
extern void fancy_abort PROTO ((void)) ATTRIBUTE_NORETURN; extern void fancy_abort PROTO ((void)) ATTRIBUTE_NORETURN;
......
...@@ -82,17 +82,6 @@ static char *lookup_key PROTO((char *)); ...@@ -82,17 +82,6 @@ static char *lookup_key PROTO((char *));
static HKEY reg_key = (HKEY) INVALID_HANDLE_VALUE; static HKEY reg_key = (HKEY) INVALID_HANDLE_VALUE;
#endif #endif
#ifndef DIR_SEPARATOR
# define IS_DIR_SEPARATOR(ch) ((ch) == '/')
#else /* DIR_SEPARATOR */
# ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
# else /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
# endif /* DIR_SEPARATOR && DIR_SEPARATOR_2 */
#endif /* DIR_SEPARATOR */
/* Given KEY, as above, return its value. */ /* Given KEY, as above, return its value. */
static const char * static const char *
......
...@@ -32,10 +32,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -32,10 +32,6 @@ Boston, MA 02111-1307, USA. */
#define obstack_chunk_alloc xmalloc #define obstack_chunk_alloc xmalloc
#define obstack_chunk_free free #define obstack_chunk_free free
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* Obstack used for allocating RTL objects. /* Obstack used for allocating RTL objects.
Between functions, this is the permanent_obstack. Between functions, this is the permanent_obstack.
While parsing and expanding a function, this is maybepermanent_obstack While parsing and expanding a function, this is maybepermanent_obstack
......
...@@ -528,6 +528,23 @@ extern void abort PARAMS ((void)); ...@@ -528,6 +528,23 @@ extern void abort PARAMS ((void));
# endif # endif
#endif /* ! HOST_PTR_PRINTF */ #endif /* ! HOST_PTR_PRINTF */
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
/* Define IS_DIR_SEPARATOR. */
#ifndef DIR_SEPARATOR_2
# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
#else /* DIR_SEPARATOR_2 */
# define IS_DIR_SEPARATOR(ch) \
(((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
#endif /* DIR_SEPARATOR_2 */
/* Get libiberty declarations. */ /* Get libiberty declarations. */
#include "libiberty.h" #include "libiberty.h"
......
...@@ -137,10 +137,6 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE! ...@@ -137,10 +137,6 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
#define PREFERRED_DEBUGGING_TYPE NO_DEBUG #define PREFERRED_DEBUGGING_TYPE NO_DEBUG
#endif #endif
#ifndef DIR_SEPARATOR
#define DIR_SEPARATOR '/'
#endif
#if ! (defined (VMS) || defined (OS2)) #if ! (defined (VMS) || defined (OS2))
extern char **environ; extern char **environ;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment