aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/optabs.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f9096a4..7f01f9e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
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;