[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2020-01-01 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #8 from John David Anglin  ---
Author: danglin
Date: Wed Jan  1 17:05:41 2020
New Revision: 279815

URL: https://gcc.gnu.org/viewcvs?rev=279815=gcc=rev
Log:
Backport from mainline
2019-12-30  John David Anglin  

PR libgomp/93066
* inclhack.def (hpux_c99_inttypes3): Fix defines for INTPTR_MAX
and UINTPTR_MAX, and missing define for SIZE_MAX.
* fixincl.x: Regenerate.
* tests/base/inttypes.h: Update for above fix.


Modified:
branches/gcc-8-branch/fixincludes/ChangeLog
branches/gcc-8-branch/fixincludes/fixincl.x
branches/gcc-8-branch/fixincludes/inclhack.def
branches/gcc-8-branch/fixincludes/tests/base/inttypes.h

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2020-01-01 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #7 from John David Anglin  ---
Author: danglin
Date: Wed Jan  1 17:01:46 2020
New Revision: 279814

URL: https://gcc.gnu.org/viewcvs?rev=279814=gcc=rev
Log:
Backport from mainline
2019-12-30  John David Anglin  

PR libgomp/93066
* inclhack.def (hpux_c99_inttypes3): Fix defines for INTPTR_MAX
and UINTPTR_MAX, and missing define for SIZE_MAX.
* fixincl.x: Regenerate.
* tests/base/inttypes.h: Update for above fix.


Modified:
branches/gcc-9-branch/fixincludes/ChangeLog
branches/gcc-9-branch/fixincludes/fixincl.x
branches/gcc-9-branch/fixincludes/inclhack.def
branches/gcc-9-branch/fixincludes/tests/base/inttypes.h

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2019-12-30 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

John David Anglin  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #6 from John David Anglin  ---
Fixed on trunk.

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2019-12-30 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #5 from John David Anglin  ---
Author: danglin
Date: Mon Dec 30 20:33:17 2019
New Revision: 279773

URL: https://gcc.gnu.org/viewcvs?rev=279773=gcc=rev
Log:
PR libgomp/93066
* inclhack.def (hpux_c99_inttypes3): Fix defines for INTPTR_MAX
and UINTPTR_MAX, and missing define for SIZE_MAX.
* fixincl.x: Regenerate.
* tests/base/inttypes.h: Update for above fix.


Modified:
trunk/fixincludes/ChangeLog
trunk/fixincludes/fixincl.x
trunk/fixincludes/inclhack.def
trunk/fixincludes/tests/base/inttypes.h

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2019-12-29 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #4 from John David Anglin  ---
Created attachment 47562
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47562=edit
Patch

I'm fine with the proposed changes to target.c but I think we need the include
fix as it's needed for other packages:
https://community.hpe.com/t5/Languages-and-Scripting/SIZE-MAX-undefined/td-p/4798688#

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2019-12-28 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #3 from Andreas Schwab  ---
Or use (uintptr_t)-1 instead.

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2019-12-28 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #2 from Jakub Jelinek  ---
(In reply to dave.anglin from comment #1)
> Including stdint.h after inttypes.h would avoid the problem

That would be quite difficult, as stdint.h is included by libgomp.h that needs
to be included first.
An easier workaround might be not to use the UINTPTR_MAX macro at all, I think
we can rely on uintptr_t being unsigned integral type and so instead of
  if (n->aux->attach_count[idx] < UINTPTR_MAX)
we could use
  if (n->aux->attach_count[idx] + 1 != 0)

[Bug libgomp/93066] libgomp/target.c:525:46: error: expected expression before ')' token

2019-12-27 Thread dave.anglin at bell dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93066

--- Comment #1 from dave.anglin at bell dot net ---
This is a target issue.  I’m testing an include fix.

Including stdint.h after inttypes.h would avoid the problem but I think header
needs fixing.

--
John David Anglin   dave.ang...@bell.net