This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] patch to fix PR56903


The following patch fixes
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56903

In this test case reload pass gets correct value HARD_REGNO_MODE_OK because it can not create pseudos (can_create_pseudo) and this was actually used that we are in reload (or after reload). LRA can create pseudos therefore it got the wrong answer. The patch fixes it.

OK for the trunk?

2013-04-10  Vladimir Makarov  <vmakarov@redhat.com>

        PR tree-optimization/56903
        * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
        lra_in_progress for return.

2013-04-10  Vladimir Makarov  <vmakarov@redhat.com>

        PR tree-optimization/56903
        * gcc.target/i386/pr56903.c: New test.

Attachment: pr56903.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]