optabs.c (expand_complex_ab): Use overflow-trapping optabs for signed types if flag_trapv.

* optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
signed types if flag_trapv.

From-SVN: r37458
This commit is contained in:
Chandrakala Chavva 2000-11-14 12:30:02 -05:00 committed by Chandra Chavva
parent 5b20f7a054
commit 10e927efe9
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-11-14 Chandrakala Chavva <cchavva@redhat.com>
* optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
signed types if flag_trapv.
2000-11-14 Zack Weinberg <zack@wolery.stanford.edu>
* tradcpp.c, tradcif.y: Update FSF mailing address, delete

View File

@ -2505,7 +2505,8 @@ expand_complex_abs (mode, op0, target, unsignedp)
/* Open-code the complex absolute-value operation
if we can open-code sqrt. Otherwise it's not worth while. */
if (sqrt_optab->handlers[(int) submode].insn_code != CODE_FOR_nothing)
if (sqrt_optab->handlers[(int) submode].insn_code != CODE_FOR_nothing
&& ! flag_trapv)
{
rtx real, imag, total;