From: jjohnstn Date: Wed, 16 Dec 2009 21:35:51 +0000 (+0000) Subject: 2009-12-16 Joel Sherrill X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6c53826764034c7a2727647ad1e3299359e8eaa7;p=pf3gnuchains%2Fpf3gnuchains4x.git 2009-12-16 Joel Sherrill * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1 for ALIGNBYTES on SPARC. --- diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9b510294da..a2561aea23 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2009-12-16 Joel Sherrill + + * libc/sys/rtems/machine/param.h: Only use sizeof(double) -1 + for ALIGNBYTES on SPARC. + 2009-12-16 Jeff Johnston * libc/include/sys/errno.h: Move EHOSTDOWN, EPFNOSUPPORT, diff --git a/newlib/libc/sys/rtems/machine/param.h b/newlib/libc/sys/rtems/machine/param.h index e4dd271fbc..74891f5040 100644 --- a/newlib/libc/sys/rtems/machine/param.h +++ b/newlib/libc/sys/rtems/machine/param.h @@ -19,7 +19,11 @@ * 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) */