From 17b80c08ecff239bdb1ab5b10ad6d98819d67791 Mon Sep 17 00:00:00 2001 From: neil Date: Mon, 20 Aug 2001 06:14:53 +0000 Subject: * cppinit.c (init_standard_includes): The returned buffer is already malloc-ed. * gcc.c (add_prefix): Similarly. * prefix.c (translate_name): Update to support clear buffer ownership rules. (update_path): Similarly. Be sure to free any newly allocated key. UPDATE_PATH_HOST_CANONICALIZE takes only one argument. (tr): New function. * prefix.h (update_path): Update prototype and document. * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean up and update to new buffer ownership rules. * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45043 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cppinit.c') diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 0b47abea185..4a78a938987 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -861,7 +861,7 @@ init_standard_includes (pfile) || (CPP_OPTION (pfile, cplusplus) && !CPP_OPTION (pfile, no_standard_cplusplus_includes))) { - char *str = xstrdup (update_path (p->fname, p->component)); + char *str = update_path (p->fname, p->component); append_include_chain (pfile, str, SYSTEM, p->cxx_aware); } } -- cgit v1.2.1