mips.c (mips_gimplify_va_arg_expr): Update for truthvalue conversion removal.
authorEric Christopher <echristo@redhat.com>
Tue, 29 Mar 2005 21:51:59 +0000 (21:51 +0000)
committerEric Christopher <echristo@gcc.gnu.org>
Tue, 29 Mar 2005 21:51:59 +0000 (21:51 +0000)
2005-03-29  Eric Christopher  <echristo@redhat.com>

* config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
truthvalue conversion removal.

From-SVN: r97208

gcc/ChangeLog
gcc/config/mips/mips.c

index 467637a9282048e056dc39b40540eac68cc53cf3..a3a955f1d15f2eaaaa399369eed5e04ceef53bf5 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-29  Eric Christopher  <echristo@redhat.com>
+
+       * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
+       truthvalue conversion removal.
+
 2005-03-29  Ian Lance Taylor  <ian@airs.com>
 
        PR bootstrap/14316
index ee23d4f59b65096682101652b24b10b81cb8243b..594d5c1a5b8bf4fbccacaea4b7f53a3c7185cb3d 100644 (file)
@@ -3973,7 +3973,8 @@ mips_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p)
        }
 
       /* [2] Emit code to branch if off == 0.  */
-      t = lang_hooks.truthvalue_conversion (off);
+      t = build (NE_EXPR, boolean_type_node, off,
+                build_int_cst (TREE_TYPE (off), 0));
       addr = build (COND_EXPR, ptr_type_node, t, NULL, NULL);
 
       /* [5] Emit code for: off -= rsize.  We do this as a form of