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] Properly disregard non-aliased variables in ref_maybe_used_by_call_p_1 and call_may_clobber_ref_p_1


On Wed, 8 Apr 2009, Paolo Bonzini wrote:

> 
> > +   /* If the reference is based on a decl that is not aliased the call
> > +      cannot possibly clobber it.  */
> > +       /* But local non-readonly statics can be modified through recursion!  */
> 
> Isn't there a flag for subroutines in cgraph saying whether they're part
> of cycles (for static subroutines whose address is not taken)?  If not,
> it would not be hard to implement in the pure-const pass and in any
> case, the builtin hack could be included there.

I don't know of such flag, but yes that would be useful in this case.

Richard.


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