This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

C++ structure sizes with long long ints under Darwin,


Hi,

Is there anyone here that might be able to look at this issue that deals with a
strange size of C++ structure under Darwin in gcc 3.3 that was originally posted
to gcc.

http://gcc.gnu.org/ml/gcc/2003-02/msg00353.html

It includes a testcase that can be compiled. The size of a C++ structure
with long long ints seems to be 4 bytes too big when compared to the same
structure when a double replacing the long long int and compared to what is
expected.

It also does not match the results of gcc 2.95 under Apple or Apples' gcc 3.1 with
and without -malign-natural.

Even a hint of where in the code to look to adjust things would be appreciated.

Thanks for your consideration

Kevin

----
Kevin B. Hendricks
Associate Professor of Operations and Information Technology
Richard Ivey School of Business, University of Western Ontario
London Ontario, CANADA N6A 3K7
khendricks@ivey.uwo.ca


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