On Fri, Jan 16, 2015 at 11:39 AM, Uros Bizjak <ubiz...@gmail.com> wrote:
> Hello!
>
>> In r219682, I have committed to trunk our current set of OpenACC changes,
>> which we had prepared on gomp-4_0-branch.  Thanks to everyone who has
>> been contributing!
>
> This patch breaks bootstrap on alpha-linux-gnu:

> "target" is NULL in expand_builtin_acc_on_device.

Following patch allows bootstrap to continue:

--cut here--
Index: builtins.c
===================================================================
--- builtins.c  (revision 219712)
+++ builtins.c  (working copy)
@@ -5930,7 +5930,7 @@ expand_builtin_acc_on_device (tree exp, rtx target
   v2 = GEN_INT (GOMP_DEVICE_HOST);
 #endif
   machine_mode target_mode = TYPE_MODE (integer_type_node);
-  if (!REG_P (target) || GET_MODE (target) != target_mode)
+  if (!target || !register_operand (target, target_mode))
     target = gen_reg_rtx (target_mode);
   emit_move_insn (target, const1_rtx);
   rtx_code_label *done_label = gen_label_rtx ();
--cut here--

Uros.

Reply via email to