From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24551 invoked by alias); 16 Sep 2002 00:56:01 -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 24537 invoked by uid 71); 16 Sep 2002 00:56:01 -0000 Date: Sun, 15 Sep 2002 17:56:00 -0000 Message-ID: <20020916005601.24536.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Andrew Pinski Subject: Re: c/7888: wrong code produced by GCC 3.1 Reply-To: Andrew Pinski X-SW-Source: 2002-09/txt/msg00441.txt.bz2 List-Id: The following reply was made to PR c/7888; it has been noted by GNATS. From: Andrew Pinski To: Raul Tabasso Cc: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c/7888: wrong code produced by GCC 3.1 Date: Sun, 15 Sep 2002 17:49:01 -0700 I could not reproduce your error: I am using gcc version: `Apple Computer, Inc. GCC version 1161, based on gcc version 3.1 20020420 (prerelease)' Also `Apple Computer, Inc. GCC version 1200, based on gcc version 3.3 20020824 (experimental)' (apple's Darwin -Head code). And `gcc version 3.3 20020911 (experimental)' (fsf cvs code). Thanks, Andrew Pinski I used the following program to test your function: int main() { int i; char temp[]={0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11 ,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0 x11,0x11,0x11,0x11,0x11}; ClearBlock(temp, sizeof(temp)); for(i=0;i Use GCC 3.1 (latest version of Apple Developer Tools for MacOSX) and > compile and run. > > I already provided the source code that produce the error. Just pass a > block filled with 1s to the routine. > > The routine should clear the block but you will see that only the > first 4 bytes for every double (8 bytes) will set to zeros. > > best regards > Raul Tabasso > > >