summaryrefslogtreecommitdiff
path: root/libiberty/alloca.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-17 18:48:45 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2001-09-17 18:48:45 +0000
commitadd62f6afea7118bc01b8ca9dfabf1062fb65031 (patch)
treed0168824c3517b671ef6a4c4bbf09f335edd2800 /libiberty/alloca.c
parent10b4496ae30845cc3fd784538f35424af952ee8b (diff)
downloadgcc-add62f6afea7118bc01b8ca9dfabf1062fb65031.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/alloca.c')
-rw-r--r--libiberty/alloca.c6
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. */