From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2066 invoked by alias); 17 Jul 2002 09:08:33 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2047 invoked by uid 61); 17 Jul 2002 09:08:32 -0000 Date: Wed, 17 Jul 2002 02:08:00 -0000 Message-ID: <20020717090832.2046.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, glushko@yahoo.com, nobody@gcc.gnu.org From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, glushko@yahoo.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/7334: SIGBUS in assignment and in memcpy() X-SW-Source: 2002-07/txt/msg00504.txt.bz2 List-Id: 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