The following was back-ported to gcc-4_8-branch. Committed as rev. 198559.
2013-05-02 Vladimir Makarov <vmaka...@redhat.com> Backport from mainline 2013-05-02 Vladimir Makarov <vmaka...@redhat.com> * lra-constraints.c (process_alt_operands): Add checking alt number to choose the best alternative. 2013-05-01 Vladimir Makarov <vmaka...@redhat.com> PR target/57091 * lra-constraints.c (best_small_class_operands_num): Remove. (process_alt_operands): Remove small_class_operands_num. Take small classes operands into losers and only if the operand is not matched. Modify debugging output. (curr_insn_transform): Remove best_small_class_operands_num. Print insn name. 2013-05-02 Vladimir Makarov <vmaka...@redhat.com> Backport from mainline PR target/57091 * gcc.target/i386/pr57091.c: New test.