From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12960 invoked by alias); 22 Aug 2005 20:43:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9771 invoked by alias); 22 Aug 2005 20:39:18 -0000 Date: Mon, 22 Aug 2005 20:44:00 -0000 Message-ID: <20050822203918.9770.qmail@sourceware.org> From: "charlet at adacore dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050822201829.23519.listor1.rombobeorn@comhem.se> References: <20050822201829.23519.listor1.rombobeorn@comhem.se> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/23519] Dividing fixed point number by zero returns zero. X-Bugzilla-Reason: CC X-SW-Source: 2005-08/txt/msg02579.txt.bz2 List-Id: ------- Additional Comments From charlet at adacore dot com 2005-08-22 20:39 ------- Subject: Re: Dividing fixed point number by zero returns zero. > This is a true front-end bug as on PPC divide by zero (in an instruction) does not raise an exception so > there needs to be an extra check which should have been added by the front-end There is no such requirement in Ada that would force the compiler to map a PPC divide by zero to an Ada exception. If you want this kind of check, be sure to use -gnato. Is -gnato used here ? I suspect not, although the compilation command has not been provided as far as I can see. Arno -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23519