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

Re: c/7888: wrong code produced by GCC 3.1


The following reply was made to PR c/7888; it has been noted by GNATS.

From: Andrew Pinski <pinskia@physics.uc.edu>
To: Raul Tabasso <tabasso@tabasoft.it>
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<sizeof(temp)/sizeof(temp[0]);i++)
 	{
 		if(temp[i]!=0)
 			printf("%d\n",i);
 	}
 	return 0;
 }
 
 
 On Friday, Sep 13, 2002, at 02:51 US/Pacific, Raul Tabasso wrote:
 
 > 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
 >
 >
 >
 


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