This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/7334: SIGBUS in assignment and in memcpy()
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, glushko at yahoo dot com, nobody at gcc dot gnu dot org
- Date: 17 Jul 2002 09:08:32 -0000
- Subject: Re: c/7334: SIGBUS in assignment and in memcpy()
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, glushko at yahoo dot com, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: SIGBUS in assignment and in memcpy()
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Wed Jul 17 02:08:32 2002
State-Changed-Why:
not a bug. The compiler is allowed to presume that an
int * points to a correctly aligned integer, and therefore
use the most efficent access for that. sparc requires objects
to be aligned, and gives a bus-error if they are not.
you say your implementation of memcpy fails in some
cases, but do not provide an example of that.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7334