[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Jun 28 23:45:01 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.45 -> 1.46
---
Log message:
Fix PR389: http://llvm.cs.uiuc.edu/PR389 on sparc (also tested on ppc):
don't assume that longs print out in their entirety as 8 hex digits.
---
Diffs of the changes: (+4 -4)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.45 llvm-gcc/gcc/llvm-expand.c:1.46
--- llvm-gcc/gcc/llvm-expand.c:1.45 Sun Jun 20 13:59:59 2004
+++ llvm-gcc/gcc/llvm-expand.c Mon Jun 28 23:43:42 2004
@@ -5034,12 +5034,12 @@
*BufPtr++ = '0';
*BufPtr++ = 'x';
if (!(BYTES_BIG_ENDIAN)) { /* If little endian */
- sprintf(Buffer+2, "%08lX", RealArr[1]);
- sprintf(Buffer+10, "%08lX", RealArr[0]);
+ sprintf(Buffer+2, "%08X", (int)RealArr[1]);
+ sprintf(Buffer+10, "%08X", (int)RealArr[0]);
*(Buffer+18) = 0; /* Null terminate */
} else {
- sprintf(Buffer+2, "%08lX", RealArr[0]);
- sprintf(Buffer+10, "%08lX", RealArr[1]);
+ sprintf(Buffer+2, "%08X", (int)RealArr[0]);
+ sprintf(Buffer+10, "%08X", (int)RealArr[1]);
*(Buffer+18) = 0; /* Null terminate */
}
More information about the llvm-commits
mailing list