aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-08-20 06:14:53 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-08-20 06:14:53 +0000
commit51c042567c98b0a181246523acad810cbf1b35f5 (patch)
treea03bfc505ec1118b3947c2fbbf52975e90cc2d08 /gcc/gcc.c
parent247a370b4f2f91d4b82c66902d46649e57b1ec91 (diff)
downloadgcc-51c042567c98b0a181246523acad810cbf1b35f5.zip
gcc-51c042567c98b0a181246523acad810cbf1b35f5.tar.gz
gcc-51c042567c98b0a181246523acad810cbf1b35f5.tar.bz2
cppinit.c (init_standard_includes): The returned buffer is already malloc-ed.
* 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. From-SVN: r45043
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 5d18063..47cfa2e 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2607,7 +2607,7 @@ add_prefix (pprefix, prefix, component, priority, require_machine_suffix, warn)
pprefix->max_len = len;
pl = (struct prefix_list *) xmalloc (sizeof (struct prefix_list));
- pl->prefix = save_string (prefix, len);
+ pl->prefix = prefix;
pl->require_machine_suffix = require_machine_suffix;
pl->used_flag_ptr = warn;
pl->priority = priority;