OSDN Git Service

make alloca call type correct
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Mar 2007 22:40:19 +0000 (22:40 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 30 Mar 2007 22:40:19 +0000 (22:40 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123374 138bc75d-0d04-0410-961f-82ee72b054a4

libcpp/ChangeLog
libcpp/directives.c

index a8be346..a56357f 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.
 2007-03-30  Richard Henderson  <rth@redhat.com>
 
        * directives.c (lex_macro_node_from_str): New.
index d9cf9d2..ccb9f32 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);
 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);
   cpp_hashnode *node;
 
   memcpy (buf, str, len);