This is the mail archive of the gcc-bugs@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]

[Bug middle-end/49191] gcc.dg/memcpy-3.c FAILs on SPARC


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


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