This is the mail archive of the gcc-bugs@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]

[Bug target/14262] Structure size computed wrong


------- Additional Comments From andreast at gcc dot gnu dot org  2004-03-20 06:08 -------
This fix to calls.c changes the ABI of darwin. The testcase which fails is in
libffi. cls_3_1byte.c fails now.

Before the patch the alignment looked like this:

0xbffffb08:     0x0c0d0ebe      0xb2b3b4c0

(12, 13, 14 and 178, 179, 180)

The 3 char's where aligned to the left. 

Now with the patch it looks like this:

0xbffffb08:     0x000c0d0e      0x00b2b3b4 


They are right aligned now. 
Though I don't know what is the right way (tm).

I will verify the current behavior of the Apple's system compiler based on 
gcc-3.3.

Either the ABI of darwin is wrong or this change has to be modified that the old
behavior of the darwin ABI is restored.

Further comments comming.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14262


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