aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorMichael Meissner <michael.meissner@amd.com>2007-03-30 22:40:19 +0000
committerMichael Meissner <meissner@gcc.gnu.org>2007-03-30 22:40:19 +0000
commit4cd97075ff0332bcdf5419fa79804ad8a66de619 (patch)
treeb6bcfbf5866e4083bd0b22ca145c41d33e31ccca /libcpp
parent47ecd38dbf87d87f64c3db3a9fd2c716e63b6ca7 (diff)
make alloca call type correct
From-SVN: r123374
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/directives.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index a8be346bc56..a56357f392e 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-30 Michael Meissner <michael.meissner@amd.com>
+
+ * directives.c (lex_macro_node_from_str): Fix alloca call to be
+ type correct.
+
2007-03-30 Richard Henderson <rth@redhat.com>
* directives.c (lex_macro_node_from_str): New.
diff --git a/libcpp/directives.c b/libcpp/directives.c
index d9cf9d27204..ccb9f32b61d 100644
--- a/libcpp/directives.c
+++ b/libcpp/directives.c
@@ -2083,7 +2083,7 @@ static cpp_hashnode *
lex_macro_node_from_str (cpp_reader *pfile, const char *str)
{
size_t len = strlen (str);
- uchar *buf = (char *) alloca (len + 1);
+ uchar *buf = (uchar *) alloca (len + 1);
cpp_hashnode *node;
memcpy (buf, str, len);