[llvm-commits] CVS: llvm/lib/Target/TargetData.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 2 14:18:33 PST 2004
Changes in directory llvm/lib/Target:
TargetData.cpp updated: 1.52 -> 1.53
---
Log message:
Fix this function to not say that longs have 8-byte alignment on X86/PPC.
This method is really a gross hack, but at least we can make it work on
the targets we support right now.
This bug fix stops a crash in a testcase reduced from 176.gcc
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.52 llvm/lib/Target/TargetData.cpp:1.53
--- llvm/lib/Target/TargetData.cpp:1.52 Wed Sep 1 17:55:35 2004
+++ llvm/lib/Target/TargetData.cpp Tue Nov 2 16:18:18 2004
@@ -107,7 +107,7 @@
PointerAlignment = PointerSize;
DoubleAlignment = PointerSize;
FloatAlignment = 4;
- LongAlignment = 8;
+ LongAlignment = PointerSize;
IntAlignment = 4;
ShortAlignment = 2;
ByteAlignment = 1;
More information about the llvm-commits
mailing list