aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2018-03-21 18:21:39 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2018-03-21 18:21:39 +0000
commit5afef8b119ac69393900a8be42cc6b69ad0bcbd0 (patch)
tree48589739cf60c87d4370d731f0c5249f6d771e0c /gcc/tree-cfg.c
parentaa3dd75327228f00df19070afac6a99a06b04f60 (diff)
downloadgcc-5afef8b119ac69393900a8be42cc6b69ad0bcbd0.zip
gcc-5afef8b119ac69393900a8be42cc6b69ad0bcbd0.tar.gz
gcc-5afef8b119ac69393900a8be42cc6b69ad0bcbd0.tar.bz2
C++: show private field accessor hints with -g and optimization (PR c++/84994)
gcc/cp/ChangeLog: PR c++/84994 * constexpr.c (constexpr_fn_retval): Make non-"static". * cp-tree.h (constexpr_fn_retval): New decl. * search.c (direct_accessor_p): Update leading comment. (reference_accessor_p): Likewise. (field_accessor_p): Replace check that function body is a RETURN_EXPR with a call to constexpr_fn_retval. Fix indentation of "field_type" decl. gcc/testsuite/ChangeLog: PR c++/84994 * g++.dg/other/accessor-fixits-1.C: Move to... * g++.dg/torture/accessor-fixits-1.C: ...here. * g++.dg/other/accessor-fixits-2.C: Move to... * g++.dg/torture/accessor-fixits-2.C: ...here. * g++.dg/other/accessor-fixits-3.C: Move to... * g++.dg/torture/accessor-fixits-3.C: ...here. * g++.dg/other/accessor-fixits-4.C: Move to... * g++.dg/torture/accessor-fixits-4.C: ...here. * g++.dg/other/accessor-fixits-5.C: Move to... * g++.dg/torture/accessor-fixits-5.C: ...here. * g++.dg/torture/accessor-fixits-6.C: New testcase. * g++.dg/torture/accessor-fixits-7.C: New testcase. * g++.dg/torture/accessor-fixits-8.C: New testcase. From-SVN: r258731
Diffstat (limited to 'gcc/tree-cfg.c')
0 files changed, 0 insertions, 0 deletions