This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11020] [ia64] gcc "Floating Point Exception" handling problem
- From: "kamran dot talebi at hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2003 17:52:12 -0000
- Subject: [Bug target/11020] [ia64] gcc "Floating Point Exception" handling problem
- References: <20030528222245.11020.kamran.talebi@hp.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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