diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2001-09-17 18:48:45 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2001-09-17 18:48:45 +0000 |
commit | c1d49704bcc084245adffb45a22d43a841665515 (patch) | |
tree | d0168824c3517b671ef6a4c4bbf09f335edd2800 /libiberty/alloca.c | |
parent | 14baae01f63af3ef58bf9a0923a92d0de7098891 (diff) | |
download | gcc-c1d49704bcc084245adffb45a22d43a841665515.tar.gz |
libiberty.h (ASTRDUP): New macro.
include:
* libiberty.h (ASTRDUP): New macro.
libiberty_optr, libiberty_nptr, libiberty_len): Declare.
libiberty:
* alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
Define.
gcc:
* c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
alloca/strcpy.
From-SVN: r45657
Diffstat (limited to 'libiberty/alloca.c')
-rw-r--r-- | libiberty/alloca.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libiberty/alloca.c b/libiberty/alloca.c index bf105d80f0f..822c1dc2307 100644 --- a/libiberty/alloca.c +++ b/libiberty/alloca.c @@ -34,6 +34,12 @@ #include <stdlib.h> #endif +/* These variables are used by the ASTRDUP implementation that relies + on C_alloca. */ +const char *libiberty_optr; +char *libiberty_nptr; +unsigned long libiberty_len; + /* If your stack is a linked list of frames, you have to provide an "address metric" ADDRESS_FUNCTION macro. */ |