This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Miscompilation of remainder expressions
- From: "Morten Welinder" <mwelinder at gmail dot com>
- To: dewar at adacore dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 18 Jan 2007 17:15:16 -0500
- Subject: Re: Miscompilation of remainder expressions
For sure a/b is undefined
In C, it is. In assembler it is perfectly well defined, i.e., it
traps. But how is the
trap handler supposed to know the source of a given instruction?
M.