Frank Heckenbach wrote:
Adriaan van Os wrote:
I ran the gpc testsuite, with the added option EXTRA_TEST_PFLAGS="--maximum-field-alignment=8".
<snip>
Still I wonder if the command-line option is actually useful, and if we shouldn't drop it and only allow it as a compiler directive.
Running the testsuite with EXTRA_TEST_PFLAGS="--pack-struct" causes similar problems .... Dropping both --maximum-field-alignment and --pack-struct as command-line options is a solution (and I don't object if they are dropped) but my personal preference is in keeping them and adding compiler directives to compiler-internal and runtime-library data structures.
I recall how we defined BP compatibility ....
You migth say that it allows compilation of some BP (and maybe other dialect) programs which do use packed fields as `var' parameters (non-standard, since BP ignores `packed' completely). But it wouldn't work in general. A general solution to *this* problem would be a new option `ignore-packed' which is also easy to implement. Then BP compatibility would use `--pack-struct --ignore-packed'. :-)
Regards,
Adriaan van Os