This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/23519] Dividing fixed point number by zero returns zero.
- From: "dje at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2005 16:18:07 -0000
- Subject: [Bug ada/23519] Dividing fixed point number by zero returns zero.
- References: <20050822201829.23519.listor1.rombobeorn@comhem.se>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dje at gcc dot gnu dot org 2005-08-31 16:18 -------
On PowerPC, one needs to emit arithmetic instructions using the mnemonic with
the "o" suffix to test for overflow (including divide by zero). The GCC
language and/or front-end would need to inform the backend that this is
required. Currently GCC cannot represent that overflow test or divide by zero
test is required, e.g., with a different RTL code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23519