The warning argument -Wpacked issues the following warning while compiling any source (program or unit):
[G4:~/gnu/testgpc/adriaan] adriaan% gpc hello.pas -Wpacked hello.pas:0: warning: packed attribute is unnecessary for `Datevalid'
'Datevalid' is the first field of the GPC internal variable GPC_TimeStamp (in p/rts/time.pas).
It should be noted that -Wpacked issues warnings per field, not per record. This suggests that in the compiler back-end packing is a field-attribute, not a record attribute. This would also explain that "Datevalid' does not need a packed attribute (because it is the first field in the record) although GPC_TimeStamp is densely packed.
I don't know whether this is target-platform dependent or not.
Reading specs from /Developer/Pascal/gpc33d7/lib/gcc-lib/powerpc-apple-darwin/3.3/specs Configured with: ../gpc-3.3d7/configure --enable-languages=pascal,c --enable-threads=posix --prefix=/Developer/Pascal/gpc33d7 --target=powerpc-apple-darwin Thread model: posix gpc version 20030507, based on gcc-3.3
Regards,
Adriaan van Os