From: Michael Meissner Date: Fri, 30 Mar 2007 22:40:19 +0000 (+0000) Subject: make alloca call type correct X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4cd97075ff0332bcdf5419fa79804ad8a66de619;hp=47ecd38dbf87d87f64c3db3a9fd2c716e63b6ca7;p=gcc.git make alloca call type correct From-SVN: r123374 --- 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 + + * directives.c (lex_macro_node_from_str): Fix alloca call to be + type correct. + 2007-03-30 Richard Henderson * 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);