[llvm-commits] [llvm-gcc-4.0] r46057 - /llvm-gcc-4.0/trunk/gcc/config/darwin.h
Chris Lattner
sabre at nondot.org
Tue Jan 15 22:22:21 PST 2008
Author: lattner
Date: Wed Jan 16 00:22:21 2008
New Revision: 46057
URL: http://llvm.org/viewvc/llvm-project?rev=46057&view=rev
Log:
vla's aren't C90, use alloca instead.
Modified:
llvm-gcc-4.0/trunk/gcc/config/darwin.h
Modified: llvm-gcc-4.0/trunk/gcc/config/darwin.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/config/darwin.h?rev=46057&r1=46056&r2=46057&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/config/darwin.h (original)
+++ llvm-gcc-4.0/trunk/gcc/config/darwin.h Wed Jan 16 00:22:21 2008
@@ -1386,7 +1386,7 @@
#define ASM_DECLARE_UNRESOLVED_REFERENCE(FILE,NAME) \
do { \
if (FILE) { \
- char Buffer[strlen(NAME)+30]; \
+ char *Buffer = alloca(strlen(NAME)+30); \
if (MACHOPIC_INDIRECT) \
sprintf(Buffer, "\t.lazy_reference %s", NAME); \
else \
More information about the llvm-commits
mailing list