[Bug c++/16381] [3.3/4.0 Regression] Structure layout bug

dannysmith at users dot sourceforge dot net gcc-bugzilla@gcc.gnu.org
Thu Oct 28 07:14:00 GMT 2004


------- Additional Comments From dannysmith at users dot sourceforge dot net  2004-10-28 07:14 -------
Isn't this a bug in cygming.h then?  Would something like this
still retain  MSVC compatibility while allowing logical alignment
for SSE[2] types?

/* This is only needed in libobjc. There we use 8-byte alignment to be
   consistent with  TARGET_ALIGN_DOUBLE default. Otherwise the
   i386 version of ADJUST_FIELD_ALIGN  will do the right thing (i.e
   not force 4-byte alignment on doubles and long longs) since 
   TARGET_ALIGN_DOUBLE is set. */
#ifdef IN_TARGET_LIBS
#undef	BIGGEST_FIELD_ALIGNMENT
#define BIGGEST_FIELD_ALIGNMENT 64
#endif

Danny


-- 


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



More information about the Gcc-bugs mailing list