aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c
index 8b7f3ea..d7e74e4 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -2901,6 +2901,9 @@ expand_abs (mode, op0, target, result_unsignedp, safe)
{
rtx temp, op1;
+ if (! flag_trapv)
+ result_unsignedp = 1;
+
temp = expand_abs_nojump (mode, op0, target, result_unsignedp);
if (temp != 0)
return temp;