[Bug target/11020] [ia64] gcc "Floating Point Exception" handling problem
kamran.talebi@hp.com
gcc-bugzilla@gcc.gnu.org
Thu Jun 12 17:52:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11020
------- Additional Comments From kamran.talebi@hp.com 2003-06-12 17:52 -------
Sorry, I could not try 3.2.3 or 3.3.
But, I tried 3.04 (gcc3-3.04-1.ia64.rpm) and that shows the same problem.
(again, I have no problem with ia64 Intel C compiler)
Is there any compilation switch in gcc 3.04 or 2.96 to avoid this?
Thanks,
-Kamran
[talebi@zkxc5ad others]$ gcc3 -o S_gcc3 hi-float.c
[talebi@zkxc5ad others]$ ecc -o S_ecc hi-float.c
hi-float.c(16): warning #266: function declared implicitly
sleep (2);
^
hi-float.c(17): warning #39: division by zero
stat = stat/0;
^
hi-float.c(21): warning #266: function declared implicitly
sleep (2);
^
hi-float.c(22): warning #266: function declared implicitly
exit(stat);
[talebi@zkxc5ad others]$ ./S_ecc 99
Floating point error happens in 2 sec... stat=99
Floating point exception
[talebi@zkxc5ad others]$ echo $?
136
[talebi@zkxc5ad others]$ ./S_gcc3 99
Floating point error happens in 2 sec... stat=99
Hello, exit status will be 0 wait 2 sec...
[talebi@zkxc5ad others]$ echo $?
0
More information about the Gcc-bugs
mailing list