mirror of git://gcc.gnu.org/git/gcc.git
parent
47ecd38dbf
commit
4cd97075ff
|
|
@ -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>
|
2007-03-30 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* directives.c (lex_macro_node_from_str): New.
|
* directives.c (lex_macro_node_from_str): New.
|
||||||
|
|
|
||||||
|
|
@ -2083,7 +2083,7 @@ static cpp_hashnode *
|
||||||
lex_macro_node_from_str (cpp_reader *pfile, const char *str)
|
lex_macro_node_from_str (cpp_reader *pfile, const char *str)
|
||||||
{
|
{
|
||||||
size_t len = strlen (str);
|
size_t len = strlen (str);
|
||||||
uchar *buf = (char *) alloca (len + 1);
|
uchar *buf = (uchar *) alloca (len + 1);
|
||||||
cpp_hashnode *node;
|
cpp_hashnode *node;
|
||||||
|
|
||||||
memcpy (buf, str, len);
|
memcpy (buf, str, len);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue