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]: Fix PR c/12372


On Fri, Oct 10, 2003 at 01:21:24PM -0400, John David Anglin wrote:
> -  /* Mark memory as used for "pure" function call.  */
> -  if (ecf_flags & ECF_PURE)
> +  /* Mark memory as used for a const function call.  */
> +  if (ecf_flags & (ECF_CONST | ECF_PURE))

I'm not quite sure why PURE is here.  This is Jan's patch,

date: 2000/04/13 13:58:59;  author: hubicka;  state: Exp;  lines: +62 -39
        * alias.c (nonlocal_reference_p): Take a care for
        CALL_INSNS's fusage field.
        * calls.c (ECF_PURE): New flag.
        (emit_call_1): Handle ECF_PURE calls.

I might have expected PURE to have a CLOBBER here, since
it *is* allowed to clobber the memory associated with its
arguments...

Anyway, without going back to do the homework on that, I 
think this patch is ok.


r~


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