re PR bootstrap/12358 (Bootstrap comparison failure!)
authorRoger Sayle <roger@eyesopen.com>
Thu, 25 Sep 2003 02:12:13 +0000 (02:12 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Thu, 25 Sep 2003 02:12:13 +0000 (02:12 +0000)
PR bootstrap/12358
* fold-const.c (tree_swap_operands_p): Only reorder operands when
one of the operands is constant.

From-SVN: r71749

gcc/ChangeLog
gcc/fold-const.c

index b869d0b9d9328a195486dbd86f6089bbf843f59c..72e1dd5aad8076c0f009f1eaac5b0b6949428f74 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-24  Roger Sayle  <roger@eyesopen.com>
+
+       PR bootstrap/12358
+       * fold-const.c (tree_swap_operands_p): Only reorder operands when
+       one of the operands is constant.
+
 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
 
        MERGE OF objc-improvements-branch into MAINLINE:
index 24f6b02ec70c8a8cf5ca967e54a5a380ca446a5d..96d46263df280e72f38e9ba2e75aacbf872be4cd 100644 (file)
@@ -5007,16 +5007,6 @@ tree_swap_operands_p (tree arg0, tree arg1)
   if (TREE_CONSTANT (arg0))
     return 1;
 
-  if (DECL_P (arg1))
-    return 0;
-  if (DECL_P (arg0))
-    return 1;
-
-  if (TREE_CODE (arg1) == SAVE_EXPR)
-    return 0;
-  if (TREE_CODE (arg0) == SAVE_EXPR)
-    return 1;
-
   return 0;
 }