This is the mail archive of the gcc@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: call tree nodes


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


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