Exactly. That's what I said. Mucking about with the default CFLAGS is just asking for trouble. The defaults are
-O2 -pipe -fno-strict-aliasing. The CFLAGS presented by the OP explicitly did not include the last option.
Seriously, does anyone actually read what I write?