This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Merge current set of OpenACC changes from gomp-4_0-branch


On Fri, Jan 16, 2015 at 11:46:35AM +0100, Uros Bizjak wrote:
> On Fri, Jan 16, 2015 at 11:39 AM, Uros Bizjak <ubizjak@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:

Ok for trunk with proper ChangeLog entry.  Thanks.

> --- 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.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]