This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: call tree nodes
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Per Fransson <fransson at cs dot lth dot se>
- Cc: gcc <gcc at gcc dot gnu dot org>
- Date: Thu, 09 Jan 2003 18:29:37 -0800
- Subject: Re: call tree nodes
- References: <Pine.GSO.4.33.0301100226540.26156-100000@ygg>
Per Fransson <fransson@cs.lth.se> writes:
> Hi,
>
> I'm wondering if there is any way of inserting calls in the tree and
> letting gcc know that the call won't have any side effects gcc needs to
> worry about when it's optimizing (even if the arguments to the called
> function happens to include addresses to the caller function's variables).
You want __attribute__((pure)), or whatever that translates to at the
tree level.
zw