COMMON requires 4 bytes of padding at start
Janus Weil
jaydub66@googlemail.com
Fri Sep 12 09:46:00 GMT 2008
> d) Action items: I suggest
> (i) To add an option to optionally do no padding [for COMMON] and enable
> that option by default (I think we can ignore SEQUENCE)
Here is a patch which changes the default behaviour, so that no
padding is done in COMMON blocks. In addition a flag -falign-commons
is introduced, which restores the old behaviour (i.e. automatic
padding).
With this patch one gets the expected output "2 3" for Tobias' test
case when omitting -falign-commons. Including the flag gives the old
output "0 2".
Testing for regressions now.
Cheers,
Janus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flag_align_commons.diff
Type: text/x-patch
Size: 2267 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080912/9059ef6d/attachment.bin>
More information about the Fortran
mailing list