aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2004-07-13 21:10:23 +0000
committerDJ Delorie <dj@redhat.com>2004-07-13 21:10:23 +0000
commit7ab9a76eac9d4999de4f37a2ce92bd324450e4d7 (patch)
tree2d5644431eccf85eac303ea0728d6a29bf5a167d /include/libiberty.h
parentc99b813881319e6820bb60d837515b5df9837e2c (diff)
downloadgdb-7ab9a76eac9d4999de4f37a2ce92bd324450e4d7.zip
gdb-7ab9a76eac9d4999de4f37a2ce92bd324450e4d7.tar.gz
gdb-7ab9a76eac9d4999de4f37a2ce92bd324450e4d7.tar.bz2
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index 761b2cf..5c10153 100644
--- a/include/libiberty.h
+++ b/include/libiberty.h
@@ -309,7 +309,7 @@ extern PTR C_alloca PARAMS ((size_t)) ATTRIBUTE_MALLOC;
# define ASTRDUP(X) \
(__extension__ ({ const char *const libiberty_optr = (X); \
const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \
- char *const libiberty_nptr = alloca (libiberty_len); \
+ char *const libiberty_nptr = (char *const) alloca (libiberty_len); \
(char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); }))
#else
# define alloca(x) C_alloca(x)
@@ -323,7 +323,7 @@ extern unsigned long libiberty_len;
# define ASTRDUP(X) \
(libiberty_optr = (X), \
libiberty_len = strlen (libiberty_optr) + 1, \
- libiberty_nptr = alloca (libiberty_len), \
+ libiberty_nptr = (char *) alloca (libiberty_len), \
(char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len))
#endif