-
- Downloads
cp-tree.h (struct lang_decl_inlined_fns): New.
* cp-tree.h (struct lang_decl_inlined_fns): New. (struct lang_decls): Add inlined_fns. (DECL_INLINED_FNS): New macro. * optimize.c (struct inline_data): Add inlined_fns. (declare_return_variable): Use VARRAY_ACTIVE_SIZE macro. (inlinable_function_p): Likewise, fix typo in comment, function is not inlinable if it already inlined function currently being optimized. (expand_call_inline): Add fn to inlined_fns if neccessary. (optimize_function): Initialize inlined_fns. Save inlined_fns into DECL_INLINED_FNS after expanding inlines. * decl.c (mark_inlined_fns): New function. (lang_mark_tree): Call it. * g++.old-deja/g++.other/inline20.C: New test. From-SVN: r39977
Showing
- gcc/cp/ChangeLog 16 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/cp-tree.h 13 additions, 0 deletionsgcc/cp/cp-tree.h
- gcc/cp/decl.c 15 additions, 0 deletionsgcc/cp/decl.c
- gcc/cp/optimize.c 45 additions, 4 deletionsgcc/cp/optimize.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.old-deja/g++.other/inline20.C 58 additions, 0 deletionsgcc/testsuite/g++.old-deja/g++.other/inline20.C
Loading
Please register or sign in to comment