This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch for PR other/13906 (md5.c does unaligned memory accesses)


> + #  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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]