This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Merge current set of OpenACC changes from gomp-4_0-branch
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Thomas Schwinge <thomas at codesourcery dot com>
- Date: Fri, 16 Jan 2015 12:06:40 +0100
- Subject: Re: Merge current set of OpenACC changes from gomp-4_0-branch
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4YukxK1hZirRXOm9rXSphaBp_wHD2LRcbs5W7HpdZpM+A at mail dot gmail dot com> <CAFULd4YewieYqm7-N0naK_TunauMcdEtxK9qUr7o5nHW+i1foQ at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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