This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to support mark_constant_function marking pure functions
- To: kenner at vlsi1 dot ultra dot nyu dot edu
- Subject: Re: Patch to support mark_constant_function marking pure functions
- From: John Wehle <john at feith dot com>
- Date: Wed, 1 Nov 2000 23:35:34 -0500 (EST)
- Cc: gcc-patches at gcc dot gnu dot org
> (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 | |
-------------------------------------------------------------------------