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]

Re: C ABI: struct/union inconsistency


	struct foo {
	#ifdef SMP
		long long count;
		long lock;
	#endif
	};

Here, attribute((nopadding)) would leave foo with size 12,
instead of the required size 16 when SMP is defined.
Ah, good point.

I hate it when I think I'm clever and then turn out not to be.

--
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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