The attached test case segfaults because the definition of V would differ with and without -msse. Without, we would use vector emulation and the type has BLKmode; with, we would have native instructions and the type has V4SFmode.
Vector types probably need a functional query for TYPE_MODE, so that we get different modes based on the target flags for the current function. -- Summary: Vector type definitions not compatible with attribute target Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rth at gcc dot gnu dot org GCC target triplet: i386-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38240