[PATCH] Make attribute functions pure

Richard Sandiford rsandifo@redhat.com
Fri Jul 23 18:45:00 GMT 2004


Paolo Bonzini <bonzini@gnu.org> writes:
> Very simple and cannot hurt.
>
> Paolo
> 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
>
> 	* genattr.c (gen_attr): Add ATTRIBUTE_PURE declaration
> 	to attribute functions.

But don't the get_attr_* functions usually call recog_memoized?
That certainly isn't a pure function.

Richard



More information about the Gcc-patches mailing list