OSDN Git Service

2009-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
authorjjohnstn <jjohnstn>
Thu, 17 Dec 2009 06:35:51 +0000 (06:35 +0000)
committerjjohnstn <jjohnstn>
Thu, 17 Dec 2009 06:35:51 +0000 (06:35 +0000)
        * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
        for ALIGNBYTES on SPARC.

newlib/ChangeLog
newlib/libc/sys/rtems/machine/param.h

index 9b51029..a2561ae 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-16  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
+       for ALIGNBYTES on SPARC.
+
 2009-12-16  Jeff Johnston  <jjohnstn@redhat.com>
 
        * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT,
index e4dd271..3407598 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  $Id$
+ *  $Id: param.h,v 1.4 2009/12/16 21:35:51 jjohnstn Exp $
  */
 
 #ifndef _MACHINE_PARAM_H_
  * for all data types (int, long, ...).   The result is unsigned int
  * and must be cast to any desired pointer type.
  */
+#if defined(__sparc__)
 #define ALIGNBYTES     (sizeof(double) - 1)
+#else
+#define ALIGNBYTES     (sizeof(int) - 1)
+#endif
 #define ALIGN(p)       (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES)
 
 #define PAGE_SHIFT     12              /* LOG2(PAGE_SIZE) */