Index: gcc/expr.h
===================================================================
--- gcc/expr.h	2012-12-23 09:21:21.969086853 +0000
+++ gcc/expr.h	2012-12-23 09:32:03.487440220 +0000
@@ -334,6 +334,8 @@ extern rtx emit_group_move_into_temps (r
    PARALLEL.  */
 extern void emit_group_store (rtx, rtx, tree, int);
 
+extern rtx avoid_group_rtx (rtx, tree);
+
 /* Copy BLKmode object from a set of registers.  */
 extern void copy_blkmode_from_reg (rtx, rtx, tree);
 
Index: gcc/expr.c
===================================================================
--- gcc/expr.c	2012-12-23 09:21:21.980086911 +0000
+++ gcc/expr.c	2012-12-23 09:32:03.485440208 +0000
@@ -2079,6 +2079,23 @@ emit_group_store (rtx orig_dst, rtx src,
     emit_move_insn (orig_dst, dst);
 }
 
+/* Return a form of X that does not use a PARALLEL.  TYPE is the type
+   of the value stored in X.  */
+
+rtx
+avoid_group_rtx (rtx x, tree type)
+{
+  enum machine_mode mode = TYPE_MODE (type);
+  gcc_checking_assert (GET_MODE (x) == VOIDmode || GET_MODE (x) == mode);
+  if (GET_CODE (x) == PARALLEL)
+    {
+      rtx result = gen_reg_rtx (mode);
+      emit_group_store (result, x, type, int_size_in_bytes (type));
+      return result;
+    }
+  return x;
+}
+
 /* Copy a BLKmode object of TYPE out of a register SRCREG into TARGET.
 
    This is used on targets that return BLKmode values in registers.  */
Index: gcc/builtins.c
===================================================================
--- gcc/builtins.c	2012-12-23 09:21:21.981086916 +0000
+++ gcc/builtins.c	2012-12-23 09:34:47.813323158 +0000
@@ -2757,6 +2757,7 @@ expand_builtin_int_roundingfn (tree exp,
   exp = build_call_nofold_loc (EXPR_LOCATION (exp), fallback_fndecl, 1, arg);
 
   tmp = expand_normal (exp);
+  tmp = avoid_group_rtx (tmp, TREE_TYPE (exp));
 
   /* Truncate the result of floating point optab to integer
      via expand_fix ().  */
@@ -2860,6 +2861,7 @@ expand_builtin_int_roundingfn_2 (tree ex
 				   fallback_fndecl, 1, arg);
 
       target = expand_call (exp, NULL_RTX, target == const0_rtx);
+      target = avoid_group_rtx (target, TREE_TYPE (exp));
       return convert_to_mode (mode, target, 0);
     }
 
