update serialisation generator script

- change the warning about apparently empty classed to "info" as there are legitimate cases where a class does not have data members but needs to be serialised (e.g. if inheriting from another serialised class).
- ignore architecture specific flags (-mtune... and -march...) when processing - this specific part should (once back ported to 71x) replace PR #4067 by A. Bocci.