This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49191] gcc.dg/memcpy-3.c FAILs on SPARC
- From: "dave at hiauly1 dot hia.nrc.ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 8 Jun 2011 18:00:33 +0000
- Subject: [Bug middle-end/49191] gcc.dg/memcpy-3.c FAILs on SPARC
- Auto-submitted: auto-generated
- References: <bug-49191-4@http.gcc.gnu.org/bugzilla/>
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