summaryrefslogtreecommitdiffstats
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-15 11:23:27 +0000
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1998-12-15 11:23:27 +0000
commit9235c69779ca5e45c651139bbe7db74998f8dfb1 (patch)
tree5c481c8ca58453f070db1b092bbe2a81d08d45ca /gcc/cppfiles.c
parent616814f81e771d0eb9b9b7f53c01e9364ad4a066 (diff)
downloadppe42-gcc-9235c69779ca5e45c651139bbe7db74998f8dfb1.tar.gz
ppe42-gcc-9235c69779ca5e45c651139bbe7db74998f8dfb1.zip
1998-12-15 Zack Weinberg <zack@rabi.phys.columbia.edu>
* cppalloc.c: Add xstrdup here. * cpplib.h: Remove savestring prototype. * cpplib.c: Remove savestring function. s/savestring/xstrdup/ throughout. * cppfiles.c: s/savestring/xstrdup/ throughout. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 8c01cddc787..108bf8751fb 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -74,7 +74,7 @@ append_include_chain (pfile, list, dir, sysp)
struct stat st;
unsigned int len;
- dir = savestring (dir);
+ dir = xstrdup (dir);
simplify_pathname (dir);
if (stat (dir, &st))
{
@@ -410,7 +410,7 @@ find_include_file (pfile, fname, search_start, ihash, before)
}
*before = 0;
*ihash = ih;
- ih->nshort = savestring (fname);
+ ih->nshort = xstrdup (fname);
ih->control_macro = NULL;
/* If the pathname is absolute, just open it. */
@@ -539,7 +539,7 @@ read_name_map (pfile, dirname)
map_list_ptr = ((struct file_name_map_list *)
xmalloc (sizeof (struct file_name_map_list)));
- map_list_ptr->map_list_name = savestring (dirname);
+ map_list_ptr->map_list_name = xstrdup (dirname);
name = (char *) alloca (strlen (dirname) + strlen (FILE_NAME_MAP_FILE) + 2);
strcpy (name, dirname);
@@ -772,7 +772,7 @@ actual_directory (pfile, fname)
size_t dlen;
struct file_name_list *x;
- dir = savestring (fname);
+ dir = xstrdup (fname);
last_slash = rindex (dir, '/');
if (last_slash)
{
OpenPOWER on IntegriCloud