http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49191

--- Comment #9 from dave at hiauly1 dot hia.nrc.ca 2011-06-08 17:59:18 UTC ---
> Perhaps something like:
> union { int i; char c[8]; } u;
> int
> main ()
> {
>   int *p;
>   asm volatile ("" : "=r" (p) : "0" (&u.c[1]));
>   *p++;
>   return 0;
> }
> compile+run and check for zero exit code?  Perhaps __ia64__ should be
> explicitly listed as strict alignment in addition to that, because I believe 
> it
> will
> succeed there, just with annoying messages in dmesg.

Same on hppa-linux.  Kernel will fixup unaligned access.

Dave

Reply via email to