public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dje at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99492] New: double and double _Complex not aligned consistently on AIX Date: Tue, 09 Mar 2021 18:04:26 +0000 [thread overview] Message-ID: <bug-99492-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99492 Bug ID: 99492 Summary: double and double _Complex not aligned consistently on AIX Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dje at gcc dot gnu.org Target Milestone: --- Target: powerpc-ibm-aix* extern "C" int printf(const char *, ...); struct C { char c1; double _Complex c2; }; struct D { char c1; double c2; }; int main() { printf("%lu\n", __alignof(double _Complex)); printf("offsetof C.c2: %lu %lu\n", __builtin_offsetof(struct C, c2), (unsigned long)&((struct C*)0)->c2); printf("%lu\n", __alignof(double)); printf("offsetof D.c2: %lu %lu\n", __builtin_offsetof(struct D, c2), (unsigned long)&((struct D*)0)->c2); return 0; } xlC/xlClang/clang on AIX all agree that D.c2 is at offset 4.
next reply other threads:[~2021-03-09 18:04 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-09 18:04 dje at gcc dot gnu.org [this message] 2021-03-10 8:10 ` [Bug target/99492] " rguenth at gcc dot gnu.org 2021-03-10 18:00 ` dje at gcc dot gnu.org 2021-03-10 23:51 ` cvs-commit at gcc dot gnu.org 2021-03-12 3:25 ` dje at gcc dot gnu.org
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-99492-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).