diff options
author | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-03 15:38:39 +0000 |
---|---|---|
committer | sje <sje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-03 15:38:39 +0000 |
commit | 91fc5678cae1e7421e46e1e0af32c91a41b65aa1 (patch) | |
tree | 38409efff96267d2b07a5179f12c3a77552e05ab /include/md5.h | |
parent | 765cebfcd93e44129c98063c5e82b6e9f44d6be3 (diff) | |
download | gcc-91fc5678cae1e7421e46e1e0af32c91a41b65aa1.tar.gz |
PR other/13906
* ansidecl.h (ATTRIBUTE_ALIGNED_ALIGNOF): New.
* md5.h (md5_uintptr): New.
(md5_ctx): Align buffer field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101556 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include/md5.h')
-rw-r--r-- | include/md5.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/md5.h b/include/md5.h index 655933f7533..e35789346b1 100644 --- a/include/md5.h +++ b/include/md5.h @@ -37,6 +37,7 @@ #ifdef _LIBC # include <sys/types.h> typedef u_int32_t md5_uint32; +typedef uintptr_t md5_uintptr; #else # define INT_MAX_32_BITS 2147483647 @@ -64,6 +65,9 @@ typedef u_int32_t md5_uint32; # endif # endif # endif +/* We have to make a guess about the integer type equivalent in size + to pointers which should always be correct. */ +typedef unsigned long int md5_uintptr; #endif /* Structure to save state of computation between the single steps. */ @@ -76,7 +80,7 @@ struct md5_ctx md5_uint32 total[2]; md5_uint32 buflen; - char buffer[128]; + char buffer[128] ATTRIBUTE_ALIGNED_ALIGNOF(md5_uint32); }; /* |