aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorChandrakala Chavva <cchavva@redhat.com>2000-11-14 12:30:02 -0500
committerChandra Chavva <cchavva@gcc.gnu.org>2000-11-14 12:30:02 -0500
commit10e927efe90d9c6bef3ec33a1faeb98cfdde88ee (patch)
tree216bc5598b574aa2a354bf3129473882a873a6c0 /gcc/optabs.c
parent5b20f7a054f6b88978513a54ef5f8b62f33f5e06 (diff)
downloadgcc-10e927efe90d9c6bef3ec33a1faeb98cfdde88ee.zip
gcc-10e927efe90d9c6bef3ec33a1faeb98cfdde88ee.tar.gz
gcc-10e927efe90d9c6bef3ec33a1faeb98cfdde88ee.tar.bz2
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
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 16433a9..5f046da 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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;