From patchwork Tue Nov 20 21:26:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: patch to fix PR55396 From: Vladimir Makarov X-Patchwork-Id: 200523 Message-Id: <50ABF597.2080705@redhat.com> To: gcc-patches Date: Tue, 20 Nov 2012 16:26:47 -0500 The following patch fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55396 The patch was successfully tested and bootstrapped on x886/x86-64. Committed as rev. 193678. 2012-11-20 Vladimir Makarov PR rtl-optimization/55396 * lra-constraints.c (get_reload_reg): Change class if it is different from reg class. Index: lra-constraints.c =================================================================== --- lra-constraints.c (revision 193677) +++ lra-constraints.c (working copy) @@ -425,7 +425,7 @@ get_reload_reg (enum op_type type, enum fprintf (lra_dump_file, " Reuse r%d for reload ", regno); print_value_slim (lra_dump_file, original, 1); } - if (rclass != new_class) + if (new_class != lra_get_allocno_class (regno)) change_class (regno, new_class, ", change", false); if (lra_dump_file != NULL) fprintf (lra_dump_file, "\n");