make alloca call type correct
authorMichael Meissner <michael.meissner@amd.com>
Fri, 30 Mar 2007 22:40:19 +0000 (22:40 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 30 Mar 2007 22:40:19 +0000 (22:40 +0000)
From-SVN: r123374

libcpp/ChangeLog
libcpp/directives.c

index a8be346bc56ab3d268618a61d0d16132abbcd764..a56357f392e1ad8c87f991b00e5be5ff0d8b2588 100644 (file)
@@ -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.
index d9cf9d27204384ebba3fe1020e6f4caa9cb512cb..ccb9f32b61da20998a6ec49c7c995e34ac504c54 100644 (file)
@@ -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);