This is the mail archive of the gcc-patches@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] |
as mentioned previously on the list by Jack Howarth, there is a mismatch in alignment with bind(c) common blocks. the Fortran compiler simply sets the alignment of all common blocks to BIGGEST_ALIGN, while the C compiler tries to align based on the size of the fields in the interoperable C struct. the attached patch should fix the alignment difference by changing the alignment setting of bind(c) common blocks.
Cheers, - Tobi
bootstrapped and regtested on x86 linux with no new failures.
ChangeLog entry:
2007-08-06 Christopher D. Rickett <crickett@lanl.gov>
* trans-common.c (build_common_decl): Fix the alignment for BIND(C) common blocks.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |