This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 22 Jan 2015 00:47:44 +0000
- Subject: [Bug tree-optimization/18487] Warnings for pure and const functions that are not actually pure or const
- Auto-submitted: auto-generated
- References: <bug-18487-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18487
--- Comment #10 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
fizzbooze: you were asking on IRC about where the existing implementation is;
see gcc/ipa-pure-const.c - though I believe that merely covers tracking the
user-provided flags interprocedurally; I don't think it covers walking
individual stmts and detecting side-effects.