[Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine

2007-05-21 Thread bliss1940-bbs at yahoo dot com
--- Comment #8 from bliss1940-bbs at yahoo dot com 2007-05-22 01:16 --- (In reply to comment #7) > On arm-elf structures are padded/aligned to a 4-byte boundary. This is a > "feature" of the ABI. The microsoft compiler obviously conforms to a different > ABI, w

[Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine

2007-05-21 Thread bliss1940-bbs at yahoo dot com
--- Comment #5 from bliss1940-bbs at yahoo dot com 2007-05-21 23:48 --- (In reply to comment #3) > Try: > struct a33 > { > struct Char1 a1; > struct Char1 a2; > }; > And see what size/offset the structs are at. Again this is an ABI issue Simply saying it&#

[Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine

2007-05-21 Thread bliss1940-bbs at yahoo dot com
--- Comment #4 from bliss1940-bbs at yahoo dot com 2007-05-21 23:22 --- (In reply to comment #3) I'm using arm-elf. Thanks for the __attribute__((packed)). That does indeed remove the hole at the end. I think we should agree to disagree. You say it's an ABI issue but

[Bug c++/32016] sizeof(class) always a multiple of 4 on 32 bit machine

2007-05-21 Thread bliss1940-bbs at yahoo dot com
--- Comment #2 from bliss1940-bbs at yahoo dot com 2007-05-21 22:18 --- (In reply to comment #1) I don't think I said GCC was in error, but just different. Maybe we can come to an agreement here, or maybe not. Let's see. I certainly would expect the ARM7 would prefer t

[Bug c++/32016] New: sizeof(class) always a multiple of 4 on 32 bit machine

2007-05-20 Thread bliss1940-bbs at yahoo dot com
t: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bliss1940-bbs at yahoo dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32016

[Bug target/17705] Testing a bool using true doesn't work

2004-09-28 Thread bliss1940-bbs at yahoo dot com
--- Additional Comments From bliss1940-bbs at yahoo dot com 2004-09-29 03:21 --- (In reply to comment #1) > Could attach the preprocessed source? I have discovered that the problem was in my code. The compiler is okay. Please cancel this bug report. Steve Bliss -- h