[llvm-commits] [llvm-gcc-4.2] r131617 - /llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h

Bill Wendling isanbard at gmail.com
Wed May 18 18:36:43 PDT 2011


Author: void
Date: Wed May 18 20:36:43 2011
New Revision: 131617

URL: http://llvm.org/viewvc/llvm-project?rev=131617&view=rev
Log:
Really, we want *all* C strings to be 1-byte aligned.
<rdar://problem/8961909>

Modified:
    llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h

Modified: llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h?rev=131617&r1=131616&r2=131617&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/darwin.h Wed May 18 20:36:43 2011
@@ -388,3 +388,12 @@
       flag_objc_legacy_dispatch = 1;		\
   } while (0)
 
+/* Radar 8961909 */
+/* Align the C string to 1-bytes on ARM. */
+#undef TARGET_ADJUST_CSTRING_ALIGN
+#define TARGET_ADJUST_CSTRING_ALIGN(GV)                                 \
+  do {                                                                  \
+    if (GV->hasInternalLinkage()) {                                     \
+      GV->setAlignment(1);                                              \
+    }                                                                   \
+  } while (0)





More information about the llvm-commits mailing list