From ef69ba281235c2d3d8387b3b97c84087ce49e6ff Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 24 Feb 2010 17:14:51 +0000 Subject: [PATCH] no need to use alloca on C99 [r27217] --- ast2firm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ast2firm.c b/ast2firm.c index 47430b5..ea749ac 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -1295,7 +1295,7 @@ static ir_node *literal_to_firm(const literal_expression_t *literal) tv = new_tarval_from_str(string, size, mode); goto make_const; case EXPR_LITERAL_FLOATINGPOINT_HEXADECIMAL: { - char *buffer = alloca(size + 2); + char buffer[size + 2]; memcpy(buffer, "0x", 2); memcpy(buffer+2, string, size); tv = new_tarval_from_str(buffer, size+2, mode); -- 2.20.1