------- Comment #7 from jamborm at gcc dot gnu dot org 2009-05-10 10:29 ------- New SRA handles this fine by not scalarizing anything that has volatile fields in it. There is already a fortran testcase with a union with a volatile field that made me aware of this.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40081