[llvm-commits] [llvm-gcc-4.2] r112893 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Jim Grosbach
grosbach at apple.com
Thu Sep 2 15:39:36 PDT 2010
Author: grosbach
Date: Thu Sep 2 17:39:36 2010
New Revision: 112893
URL: http://llvm.org/viewvc/llvm-project?rev=112893&view=rev
Log:
turn off VLA+dynamic realignment diagnostic for ARM since it's now supported
there.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=112893&r1=112892&r2=112893&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Thu Sep 2 17:39:36 2010
@@ -851,6 +851,9 @@
}
UniquedValues.clear();
+#if !defined(TARGET_ARM)
+ // ARM supports VLAs + dynamic realignment. Others don't.
+
// If we've seen a vla in this function and we'll possibly need to
// either dynamically realign or this is greater than the maximum stack
// alignment, output a warning. This is here so we don't warn every time
@@ -859,6 +862,7 @@
GreatestAlignment > TheTarget->getFrameInfo()->getStackAlignment())
warning (0, "alignment for %q+D conflicts with a dynamically realigned "
"stack", SeenVLA);
+#endif
return Fn;
}
More information about the llvm-commits
mailing list