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

[Bug target/22576] [4.0/4.1 regression] ICE with simple factorial program compiled with -ffast-math on gcc 4.0.2


------- Additional Comments From black dot hole dot sun16 at gmail dot com  2005-07-20 23:13 -------
(From update of attachment 9309)
>#include <stdio.h>
>
>/* Program prints the first 10 postitive integers and their factorials */
>
>main()
>{
>long double i, j, k = 1;
>
>for(i = 1; i <= 100; i++) 
>	{
>	for(j = i; j > 0; j = j - 1)
>		{		
>		k = k * j; 			
>		if(j == 1) 	
>			{
>			printf("factorial of %Lf is %Lf\n", i, k);
>			k = 1; 
>			}
>		}
>	}
>	return 0;
>}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22576


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