diff options
author | cchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-14 17:30:02 +0000 |
---|---|---|
committer | cchavva <cchavva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-14 17:30:02 +0000 |
commit | 59201b02cd18cb878f380ae05815fde4eba01d1d (patch) | |
tree | 216bc5598b574aa2a354bf3129473882a873a6c0 /gcc/optabs.c | |
parent | 2407da467a2c77e613848b15a7517c8a11c06bd5 (diff) | |
download | gcc-59201b02cd18cb878f380ae05815fde4eba01d1d.tar.gz |
* optabs.c (expand_complex_ab):: Use overflow-trapping optabs for
signed types if flag_trapv.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37458 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |