This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Removing useless/redundant "const" calls
- From: Jason Merrill <jason at redhat dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: Zack Weinberg <zack at codesourcery dot com>, law at redhat dot com, <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 12 Jun 2003 15:57:55 -0400
- Subject: Re: [tree-ssa] Removing useless/redundant "const" calls
- References: <Pine.LNX.4.44.0306122014320.23540-100000@wotan.suse.de>
On Thu, 12 Jun 2003 20:32:36 +0200 (CEST), Michael Matz <matz@suse.de> wrote:
> It's not that we would gain much from marking such functions pure
> automatically (they will be optimized away not that often). But what
> could be done instead is to allow the user to explicitely define functions
> as pure (per attribute), _even_ if it contains calls to non-pure noreturn
> functions. So I'm just against detecting such functions automatically as
> pure.
I agree.
Jason