This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
mips structure padding
- From: "Todd Malsbary" <toddm at fullplaymedia dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Mon, 28 Jan 2002 18:05:31 -0800
- Subject: mips structure padding
hi, i have a c structure and a c++ class with the same data members and
sizeof returns different sizes for each. i'm wondering exactly why that
occurs. i'm building ecos using gcc 3.0.3 targeted for mips-r3000-elf.
the purpose of the c structure is to allocate some storage for placement
new in c++ land. i can verify that this code works on the arm-elf
target through various versions of gcc and i'm assuming it works for the
other mips targets that ecos runs on. it seems to be confined to the
r3000 target. is this is a bug or a feature? in either case, what
would be the recommended fix? thanks,
Todd