cp-tree.h (struct lang_decl_inlined_fns): New.
authorJakub Jelinek <jakub@redhat.com>
Thu, 22 Feb 2001 11:46:33 +0000 (12:46 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Feb 2001 11:46:33 +0000 (12:46 +0100)
commitb3bae5e2bf8b2f06d687adb32740f6258b5e3b36
treeca3614007d0819a932a044965511b4b6c9fbc586
parent35723595ab2119465335b36a7fc599a96c91d461
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/optimize.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/inline20.C [new file with mode: 0644]