This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: avoiding removal of -ftrapv libcalls in RTL optimization
On Sep 17, 2007, at 02:47, Paolo Bonzini wrote:
I noticed init_optabv is used to set up sdivv_optab, which appears
to be unused (and probably should be removed, but as a separate
patch).
sdivv would presumably abort on a division by zero.
That makes sense -- I suppose the divsi3 pattern isn't required to
trap on division by 0? -- but from some test output at -O0 on x86, I
don't think we even try to use it. Not to mention the fact that the
string "divv" isn't present in libgcc2.c at all. :)
Ken