public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/25630] New: darwin-ppc, wrong alignment of nested structs
@ 2006-01-01 20:35 andreast at gcc dot gnu dot org
2006-01-01 20:36 ` [Bug target/25630] " pinskia at gcc dot gnu dot org
2006-10-16 21:47 ` geoffk at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: andreast at gcc dot gnu dot org @ 2006-01-01 20:35 UTC (permalink / raw)
To: gcc-bugs
darwin-ppc gets the alignment of nested structs wrong if they contain long long
or double members.
The apple compiler, gcc version 4.0.1 (Apple Computer, Inc. build 5247)
does it 'correctly'.
Here an example for a wrong alignment:
struct A {long long a; unsigned char b;};
struct D {unsigned char y; struct A x; unsigned char z;};
struct E {long long d; unsigned char e;};
struct y { struct A b2; struct D b3; struct E b4;};
The apple output of sizeof(y) is 56, the current fsf gcc head gives: 64.
I put a few sample test cases into gcc.target/powerpc/darwin-abi-3...11.c on
main.
--
Summary: darwin-ppc, wrong alignment of nested structs
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: andreast at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin8.3.0
GCC host triplet: powerpc-apple-darwin8.3.0
GCC target triplet: powerpc-apple-darwin8.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25630
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/25630] darwin-ppc, wrong alignment of nested structs
2006-01-01 20:35 [Bug target/25630] New: darwin-ppc, wrong alignment of nested structs andreast at gcc dot gnu dot org
@ 2006-01-01 20:36 ` pinskia at gcc dot gnu dot org
2006-10-16 21:47 ` geoffk at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-01 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-01-01 20:36 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ABI, wrong-code, xfail
Last reconfirmed|0000-00-00 00:00:00 |2006-01-01 20:36:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25630
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/25630] darwin-ppc, wrong alignment of nested structs
2006-01-01 20:35 [Bug target/25630] New: darwin-ppc, wrong alignment of nested structs andreast at gcc dot gnu dot org
2006-01-01 20:36 ` [Bug target/25630] " pinskia at gcc dot gnu dot org
@ 2006-10-16 21:47 ` geoffk at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2006-10-16 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from geoffk at gcc dot gnu dot org 2006-10-16 21:46 -------
I think this is a dup of bug 23067; they have the same underlying problem,
which is that FSF GCC doesn't emulate the Apple GCC algorithm for structure
layout exactly.
*** This bug has been marked as a duplicate of 23067 ***
--
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25630
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-10-16 21:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-01 20:35 [Bug target/25630] New: darwin-ppc, wrong alignment of nested structs andreast at gcc dot gnu dot org
2006-01-01 20:36 ` [Bug target/25630] " pinskia at gcc dot gnu dot org
2006-10-16 21:47 ` geoffk at gcc dot gnu dot org
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).