Hope I didn't mess anything with my gcc tree :) Steps to reproduce:
1. apply the patch to regclass.c 2. compile record_operand_costs.i with "-O1 -ftree-vectorize" and link into cc1 3. use testcase bug.i to see segmentation fault -- Summary: regclass.c miscompiled by -ftree-vectorize Product: gcc Version: 4.0.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P2 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: belyshev at lubercy dot com CC: gcc-bugs at gcc dot gnu dot org GCC target triplet: i686-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19107