public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tschwinge at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/95236] New: OMP 'GOMP_MAP_STRUCT': a structure is more than the sum of all its fields? Date: Wed, 20 May 2020 10:42:23 +0000 [thread overview] Message-ID: <bug-95236-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95236 Bug ID: 95236 Summary: OMP 'GOMP_MAP_STRUCT': a structure is more than the sum of all its fields? Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: openacc, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: tschwinge at gcc dot gnu.org CC: jakub at gcc dot gnu.org, jules at gcc dot gnu.org Target Milestone: --- Created attachment 48571 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48571&action=edit 'itu_.c' ..., and the answer (technically) may easily be "yes", considering ABI-mandated padding, for example. But: is that user friendly? Consider the test case I'm attaching, where 'struct s' consists of fields 'a', 'b', which both get mapped -- yet, 's' itself isn't considered to be. At the user level, should a structure equal the sum of all its fields, or "do we have to be complicated"? I have not fully thought that through, just noticed this when looking into something else. I also have not verified OpenMP behavior.
next reply other threads:[~2020-05-20 10:42 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-20 10:42 tschwinge at gcc dot gnu.org [this message] 2020-06-02 21:54 ` [Bug middle-end/95236] " julian at codesourcery dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-95236-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).