On Sat, Jun 13, 2020 at 11:06:52AM +0200, Jakub Jelinek via Gcc-patches wrote: > On Fri, Jun 12, 2020 at 07:51:32PM -0400, y2s1982 wrote: > > This patch adds a partial omp-tools.h from OpenMP project which > > declares function prototypes and typedefs used in OMPD. > > > > This patch also addressed all feedback. > > > > 2020-06-12 Tony Sim <y2s1...@gmail.com> > > > > libgomp/ChangeLog: > > > > * Makefile.am: Added new header. > > This should give more details, like: > * Makefile.am (nodist_libsubinclude_HEADERS): Add omp-tools.h. > > > * Makefile.in: Regenerate. > > * omp-tools.h: New file. > > Otherwise LGTM, but as we discussed, for now please push it to your > stable repository and we'll put it into GCC mainline when it is complete > or at least mostly complete.
Actually, have you tried to compile the header? echo '#include "omp-tools.h"' | gcc -S -xc - -o /tmp/omp-tools.s ? I think you are missing some typedefs. E.g. in OpenMP/sources I see typedef uint64_t ompd_size_t; typedef uint64_t ompd_wait_id_t; typedef uint64_t ompd_addr_t; typedef int64_t ompd_word_t; typedef uint64_t ompd_seg_t; typedef uint64_t ompd_device_t; and I think from these you only have ompd_wait_id_t... For int64_t replacement use __INT64_TYPE__... Jakub