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 support mark_constant_function marking pure functions


>	(global_reg_mentioned_p): New function.
>	(nonlocal_referenced_p): Likewise.
>	(nonlocal_set_p): Likewise.
>
> I think these should be in rtlanal.c and non-static.

non_local_referenced_p and nonlocal_set_p call nonlocal_mentioned_p
which requires information only present during alias analysis (
find_base_term is used which is a static function already in alias.c).

In addition global_reg_mentioned_p and nonlocal_mentioned_p use
global_regs.  There is a comment in reg_set_p to the affect that
call_used_regs can't be used in rtlanal.c due to genattrtab.  I
imagine that the same comment applies to global_regs.

-- 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]