From 10e927efe90d9c6bef3ec33a1faeb98cfdde88ee Mon Sep 17 00:00:00 2001 From: Chandrakala Chavva Date: Tue, 14 Nov 2000 12:30:02 -0500 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/optabs.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f9096a40087..7f01f9e33c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-14 Chandrakala Chavva + + * optabs.c (expand_complex_ab):: Use overflow-trapping optabs for + signed types if flag_trapv. + 2000-11-14 Zack Weinberg * tradcpp.c, tradcif.y: Update FSF mailing address, delete diff --git a/gcc/optabs.c b/gcc/optabs.c index 16433a9a3dc..5f046da9646 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;