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]

Re: Patch for PR rtl-optimization/22472 (Critical HPPA bug)


> + /* Don't allow hard registers to be renamed into r2.
> +    ??? Are there other registers that we shouldn't rename.  */
> +
> + #define HARD_REGNO_RENAME_OK(OLD_REG, NEW_REG) (NEW_REG != 2)

Hmmm, I think HARD_REGNO_RENAME_OK should return true if either
!current_function_is_leaf or NEW_REG != 2 are true.  In non
leaf functions, r2 is saved and restored in the prologue and
epilogue, respectively.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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