https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105358
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Or is the problem mainly in code like
#define INLINE_ORDERED_TEAM_IDS_OFF \
((offsetof (struct gomp_work_share, inline_ordered_team_ids) \
+ __alignof__ (long long) - 1) & ~(__alignof__ (long long) - 1))
if (size > (sizeof (struct gomp_work_share)
- INLINE_ORDERED_TEAM_IDS_OFF))
where if struct gomp_work_share's size equal to inline_ordered_team_ids
isn't a multiple of 8 sizeof (struct gomp_work_share) -
INLINE_ORDERED_TEAM_IDS_OFF wraps around?