diff options
author | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-30 22:40:19 +0000 |
---|---|---|
committer | meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-30 22:40:19 +0000 |
commit | f23c2abe56dba9a57738db7696938c78e4bcc1b3 (patch) | |
tree | b6bcfbf5866e4083bd0b22ca145c41d33e31ccca /libcpp | |
parent | 81e897e4432b9eb9dbd715cee4c6ba80d355895e (diff) | |
download | gcc-f23c2abe56dba9a57738db7696938c78e4bcc1b3.tar.gz |
make alloca call type correct
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123374 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/directives.c | 2 |
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); |