[Bug libgcj/50057] [4.7 regression] misalignment of java_exception_header resulted in throwable to be null
ktietz at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 10 19:20:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50057
--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-02-10 19:19:56 UTC ---
Hmm, I assume issue is related to using of -mms-bitfields for 4.7 for
windows-targets.
Does the following patch fix the issue?
Index: exception.cc
===================================================================
--- exception.cc (revision 184105)
+++ exception.cc (working copy)
@@ -33,12 +33,18 @@
}
#include "unwind.h"
+#ifdef __MINGW32__
+__attribute__ ((gcc_struct))
+#endif
struct alignment_test_struct
{
char space;
char end[0] __attribute__((aligned));
};
+#ifdef __MINGW32__
+__attribute__ ((gcc_struct))
+#endif
struct java_exception_header
{
/* Cache handler details between Phase 1 and Phase 2. */
More information about the Java-prs
mailing list