diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-12-16 21:35:51 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-12-16 21:35:51 +0000 |
commit | 377b190270269d05271ecc54c3f55ab2113fdabe (patch) | |
tree | def84974f6afc08242cd8e92eda7669429c514d9 | |
parent | 6bd43918eb2e27911f487418479480481acc7cbe (diff) | |
download | cygnal-377b190270269d05271ecc54c3f55ab2113fdabe.tar.gz cygnal-377b190270269d05271ecc54c3f55ab2113fdabe.tar.bz2 cygnal-377b190270269d05271ecc54c3f55ab2113fdabe.zip |
2009-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libc/sys/rtems/machine/param.h: Only use sizeof(double) -1
for ALIGNBYTES on SPARC.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/machine/param.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9b510294d..a2561aea2 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -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, diff --git a/newlib/libc/sys/rtems/machine/param.h b/newlib/libc/sys/rtems/machine/param.h index e4dd271fb..74891f504 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) */ |