diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-08-20 06:14:53 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-08-20 06:14:53 +0000 |
commit | 51c042567c98b0a181246523acad810cbf1b35f5 (patch) | |
tree | a03bfc505ec1118b3947c2fbbf52975e90cc2d08 /gcc/doc/gcc.texi | |
parent | 247a370b4f2f91d4b82c66902d46649e57b1ec91 (diff) | |
download | gcc-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/doc/gcc.texi')
-rw-r--r-- | gcc/doc/gcc.texi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/doc/gcc.texi b/gcc/doc/gcc.texi index 862d2fe..befee36 100644 --- a/gcc/doc/gcc.texi +++ b/gcc/doc/gcc.texi @@ -4059,12 +4059,13 @@ If defined, a C statement (sans semicolon) that performs host-dependent initialization when a compilation driver is being initialized. @findex UPDATE_PATH_HOST_CANONICALIZE -@item UPDATE_PATH_HOST_CANONICALIZE (@var{path}, @var{key}) +@item UPDATE_PATH_HOST_CANONICALIZE (@var{path}) If defined, a C statement (sans semicolon) that performs host-dependent -canonicalization when a path used in a compilation driver or preprocessor is -canonicalized. @var{path} is the path to be canonicalized, and @var{key} is -a translation prefix when its value isn't @code{NULL}. If the C statement -does canonicalize @var{path}, the new path should be returned. +canonicalization when a path used in a compilation driver or +preprocessor is canonicalized. @var{path} is a malloc-ed path to be +canonicalized. If the C statement does canonicalize @var{path} into a +different buffer, the old path should be freed and the new buffer should +have been allocated with malloc. @end table @findex bzero |