This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/64972] [5 Regression] Build failure in libgomp for i686-w64-mingw32 target after latest merge from gomp-4_0-branch
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 24 Mar 2015 10:51:38 +0000
- Subject: [Bug libgomp/64972] [5 Regression] Build failure in libgomp for i686-w64-mingw32 target after latest merge from gomp-4_0-branch
- Auto-submitted: auto-generated
- References: <bug-64972-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64972
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Rainer Emrich from comment #5)
> (In reply to Jakub Jelinek from comment #4)
> > And the suggested fix is just to cast to unsigned long and use %ld or %lx
> > instead of %zd and %zx. I can't test it on these targets, so it is better
> > if somebody with M$ access writes and tests the patch.
>
> Index: target.c
> ===================================================================
> --- target.c (Revision 221607)
> +++ target.c (Arbeitskopie)
> @@ -439,8 +439,8 @@ gomp_map_vars (struct gomp_device_descr
> was missing. */
> size_t size = k->host_end - k->host_start;
> gomp_fatal ("present clause: !acc_is_present (%p, "
> - "%zd (0x%zx))", (void *) k->host_start,
> - size, size);
> + "%ld (0x%lx))", (void *) k->host_start,
> + (unsigned long) size, (unsigned long)
> size);
> }
> break;
> case GOMP_MAP_FORCE_DEVICEPTR:
>
> Something like this? At least that builds on x86_64-w64-mingw32.
Yeah.
> But there is another issue with formatters in oacc-parallel.c.
> Shall I append to this bug or open a new one?
Please don't create a new bug, it is the same thing.