This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50021] -Wsuggest-attribute=pure makes obviously-incorrect suggestion
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 9 Aug 2011 08:28:05 +0000
- Subject: [Bug tree-optimization/50021] -Wsuggest-attribute=pure makes obviously-incorrect suggestion
- Auto-submitted: auto-generated
- References: <bug-50021-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50021
--- Comment #3 from rguenther at suse dot de <rguenther at suse dot de> 2011-08-09 08:27:16 UTC ---
On Mon, 8 Aug 2011, hubicka at gcc dot gnu.org wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50021
>
> --- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-08-08 20:48:51 UTC ---
> Yep, we need to mark partial clones and supress warnings there. Do we have way
> to work out from DECL if it is a clone? (from callgraph it is bit tricky in
> this case when it comes to ltrans partitioning. For sure I can stick flag there
> through)
I'm not sure - I probably would add a decl flag for this (might be useful
for debug info as well).