patch-2.1.101 linux/include/asm-ppc/byteorder.h
Next file: linux/include/asm-ppc/cuda.h
Previous file: linux/include/asm-mips/xstat.h
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Fri May 8 00:18:23 1998
- Orig file:
v2.1.100/linux/include/asm-ppc/byteorder.h
- Orig date:
Fri Dec 5 12:47:08 1997
diff -u --recursive --new-file v2.1.100/linux/include/asm-ppc/byteorder.h linux/include/asm-ppc/byteorder.h
@@ -31,6 +31,10 @@
asm volatile("stwbrx %0,0,%1" : : "r" (val), "r" (addr) : "memory");
}
+/* alas, egcs sounds like it has a bug in this code that doesn't use the
+ inline asm correctly, and can cause file corruption. Until I hear that
+ it's fixed, I can live without the extra speed. I hope. */
+#if !(__GNUC__ >= 2 && __GNUC_MINOR__ >= 90)
#if 0
# define __arch_swab16(x) ld_le16(&x)
# define __arch_swab32(x) ld_le32(&x)
@@ -59,6 +63,8 @@
#define __arch__swab32(x) ___arch__swab32(x)
#define __arch__swab16(x) ___arch__swab16(x)
#endif /* 0 */
+
+#endif
/* The same, but returns converted value from the location pointer by addr. */
#define __arch__swab16p(addr) ld_le16(addr)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov