using __attribute__((aligned)) can change the alignment dependent on if you use -mavx or not. This is because BIGGEST_ALIGNMENT is defined using -mavx. This is not correct as -mavx should not change the ABI unless you use the avx sized vectors.
-- Summary: [4.4 Regression] -mavx can change the ABI via BIGGEST_ALIGNMENT Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: wrong-code, ABI Severity: blocker Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38736