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]

Patch: missing checks for HARD_REGNO_CALL_PART_CLOBBERED


Building some of the (draft) Spec2004 programs with -mcpu=G5 exposed a couple of
places in register allocation where it wasn't checking HARD_REGNO_CALL_PART_CLOBBERED,
with the effect that a value (partially) clobbered by a call was reused after the call.
The originals are copyrighted, and as usual with RA bugs, it goes away
when you make it smaller; I don't know how to make a test case.
Bootstrapped and tested on Darwin, all languages but Ada.


2005-02-10 Dale Johannesen <dalej@apple.com>

        * cselib.c (cselib_process_insn):  Clear out regs where
        HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
        * reload.c (find_equiv_reg): Ditto.

Attachment: diffs1.txt
Description: Text document



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