[llvm-commits] CVS: llvm-gcc/gcc/config/rs6000/darwin.h

Chris Lattner lattner at cs.uiuc.edu
Mon Jul 25 17:41:32 PDT 2005



Changes in directory llvm-gcc/gcc/config/rs6000:

darwin.h updated: 1.2 -> 1.3
---
Log message:

Add a flag to hack darwin, which has funky alignment rules


---
Diffs of the changes:  (+6 -0)

 darwin.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm-gcc/gcc/config/rs6000/darwin.h
diff -u llvm-gcc/gcc/config/rs6000/darwin.h:1.2 llvm-gcc/gcc/config/rs6000/darwin.h:1.3
--- llvm-gcc/gcc/config/rs6000/darwin.h:1.2	Wed Jul 20 19:57:44 2005
+++ llvm-gcc/gcc/config/rs6000/darwin.h	Mon Jul 25 19:41:21 2005
@@ -270,6 +270,12 @@
 	      : TREE_TYPE (FIELD)) == DFmode \
    ? MIN ((COMPUTED), 32) : (COMPUTED)))
 
+/* The maximum alignment for this target (according to LLVM) is 4 bytes,
+ * this prevents the type layout machinery from thinking darwin's doubles
+ * and 'long long's are 64-bit aligned.
+ */
+#define LLVM_TARGET_MAX_ALIGN_IS_POINTER_SIZE 1
+
 /* Darwin increases natural record alignment to doubleword if the first
    field is an FP double while the FP fields remain word aligned.  */
 #define ROUND_TYPE_ALIGN(STRUCT, COMPUTED, SPECIFIED)	\






More information about the llvm-commits mailing list