]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
combine.c (gen_binary): Handle the CLOBBER rtx and don't build a binary operation...
authorDenis Chertykov <denisc@overta.ru>
Thu, 10 Jul 2003 20:28:09 +0000 (20:28 +0000)
committerDenis Chertykov <denisc@gcc.gnu.org>
Thu, 10 Jul 2003 20:28:09 +0000 (00:28 +0400)
* combine.c (gen_binary): Handle the CLOBBER rtx and
don't build a binary operation with it.

Co-Authored-By: Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
From-SVN: r69199

gcc/ChangeLog
gcc/combine.c

index fa80ec781b3b734566c4f983ba163aa4d77ce34d..36267f95fba71047a7a2e09825d3213753928b17 100644 (file)
@@ -1,3 +1,9 @@
+2003-06-30  Denis Chertykov  <denisc@overta.ru>
+            Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
+
+       * combine.c (gen_binary): Handle the CLOBBER rtx and
+       don't build a binary operation with it.
+
 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
 
        * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
index 037f583d827de8490a794fb88cc8966f04bb05b7..499e7b992cc86289dd23a52d3533ad2750602192 100644 (file)
@@ -10171,6 +10171,11 @@ gen_binary (enum rtx_code code, enum machine_mode mode, rtx op0, rtx op1)
   rtx result;
   rtx tem;
 
+  if (GET_CODE (op0) == CLOBBER)
+    return op0;
+  else if (GET_CODE (op1) == CLOBBER)
+    return op1;
+  
   if (GET_RTX_CLASS (code) == 'c'
       && swap_commutative_operands_p (op0, op1))
     tem = op0, op0 = op1, op1 = tem;