[llvm-commits] [llvm-gcc-4.2] r52262 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Dale Johannesen
dalej at apple.com
Fri Jun 13 15:17:47 PDT 2008
Author: johannes
Date: Fri Jun 13 17:17:46 2008
New Revision: 52262
URL: http://llvm.org/viewvc/llvm-project?rev=52262&view=rev
Log:
Fix an ObjC ABI difference in metadata alignment.
x
Modified:
llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=52262&r1=52261&r2=52262&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Fri Jun 13 17:17:46 2008
@@ -5737,7 +5737,12 @@
sprintf (buf, "_OBJC_MESSAGE_REF_%d", message_reference_idx++);
decl = start_var_decl (objc_v2_message_ref_template, buf);
-
+#ifdef ENABLE_LLVM
+ /* These are 4-byte aligned in 32-byte, 16-byte in 64-bit, which does not
+ follow from the alignments of the component types. */
+ DECL_ALIGN(decl) = BITS_PER_WORD==32 ? 32 : 128;
+ DECL_USER_ALIGN(decl) = 1;
+#endif
return decl;
}
More information about the llvm-commits
mailing list