optabs.c (expand_abs): Set result_unsignedp to 1 if flag_trav is zero.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 8 Jun 2003 04:27:11 +0000 (04:27 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 8 Jun 2003 04:27:11 +0000 (04:27 +0000)
* optabs.c (expand_abs): Set result_unsignedp to 1 if
flag_trav is zero.

From-SVN: r67611

gcc/ChangeLog
gcc/optabs.c

index 2446011e1587e6f815b31179a7e7c581c1b7eef9..cce9f14fd94a1a3c8f57cf327c158ed729d400a1 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-08  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * optabs.c (expand_abs): Set result_unsignedp to 1 if
+       flag_trav is zero.
+
 2003-06-07  Richard Henderson  <rth@redhat.com>
 
         * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
index 8b7f3ea0481ad4df902228074be56a303461de93..d7e74e4a46f3502217947bc3bd9bc4f8e718f994 100644 (file)
@@ -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;