This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Re: Patch: Standard comformant arithmetic
- To: Andrew Haley <aph@pasanda.cygnus.co.uk>
- Subject: Re: Patch: Standard comformant arithmetic
- From: Tom Tromey <tromey@cygnus.com>
- Date: Wed, 21 Jul 1999 10:23:47 -0700
- Cc: java-patches@sourceware.cygnus.com
- References: <19990721151109.8768.qmail@pasanda.cygnus.co.uk>
>>>>> "Andrew" == Andrew Haley <aph@pasanda.cygnus.co.uk> writes:
Andrew> Firstly, we don't check division by zero, and instead rely on
Andrew> the run-time environment to trap when division by zero occurs.
This discussion brings to mind the null pointer problems we have.
For systems without memory management support, when -Os is used, it
might make the most sense to put the check inside the callee and not
the caller. Of course, this would mean that you'd have to build your
entire application the same way in order to get consistent null
pointer checks. Does this sound reasonable?
Tom