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]

Re: Patch to improve local-alloc invariant handling


> I'm interested in hearing other solutions.

I can probably have equiv_init_movable_p check REG_N_CALLS_CROSSED for
the pseudo register and if a call clobbered register is used as a source.
This should allow:

>	* rtlanal.c (rtx_unstable_p, rtx_varies_p): Don't consider pic
>	register stable if PIC_OFFSET_TABLE_REG_CALL_CLOBBERED.

to be backed out, though having now seen this problem I do wonder
if perhaps your change should simply be left in to prevent other
possible problems.

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------


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