This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]