This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for PR other/13906 (md5.c does unaligned memory accesses)
- From: DJ Delorie <dj at redhat dot com>
- To: sje at cup dot hp dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 1 Jul 2005 14:35:27 -0400
- Subject: Re: Patch for PR other/13906 (md5.c does unaligned memory accesses)
- References: <200507011801.LAA15631@hpsje.cup.hp.com>
> + # define ATTRIBUTE_ALIGNED_ALIGNOF(m)
> + # endif /* GNUC >= 3.3 */
The above comment is wrong.
> --- 80,86 ----
>
> md5_uint32 total[2];
> md5_uint32 buflen;
> ! char buffer[128] ATTRIBUTE_ALIGNED_ALIGNOF(md5_uint32);
> };
How can buffer ever *not* be as aligned as an md5_uint32, when it
follows one in the structure?