summaryrefslogtreecommitdiff
path: root/libstdc++-v3/doc/html
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-27 20:22:54 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-27 20:22:54 +0000
commit2c06958dd016b59956d16135d727e3f296c380be (patch)
tree778af4c2a789370f37221943c394560c41ac11e2 /libstdc++-v3/doc/html
parentf501341978079e3f868d8404d409d6ca6f5929de (diff)
downloadgcc-2c06958dd016b59956d16135d727e3f296c380be.tar.gz
2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
Jan Hubicka <hubicka@ucw.cz> * doc/invoke.texi (-Wsuggest-attribute=const, -Wsuggest-attribute=pure): Document. * ipa-pure-const.c: Include toplev.h, intl.h and opts.h. (function_always_visible_to_compiler_p, suggest_attribute, warn_function_pure, warn_function_const): New functions. (check_call): Improve debug info. (analyze_function): Do not check availability. (add_new_function): Check availability. (propagate): Output warnings. (skip_function_for_local_pure_const): New function. (local_pure_const): Use it; output warnings. * common.opt (Wsuggest-attribute=const, Wsuggest-attribute=pure): New. testsuite/ * gcc.dg/pure-2.c: New testcase. * gcc.dg/const-1.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158803 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/doc/html')
0 files changed, 0 insertions, 0 deletions