decl2.c (start_objects): Mark constructor-runnning function as artificial.

* decl2.c (start_objects): Mark constructor-runnning function
	as artificial.

From-SVN: r126080
This commit is contained in:
Geoffrey Keating 2007-06-28 18:31:53 +00:00 committed by Geoffrey Keating
parent 8aa19d9599
commit 32d4913401
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-06-28 Geoffrey Keating <geoffk@apple.com>
* decl2.c (start_objects): Mark constructor-runnning function
as artificial.
2007-06-26 Simon Martin <simartin@users.sourceforge.net>
PR c++/32111

View File

@ -2320,6 +2320,10 @@ start_objects (int method_type, int initp)
TREE_PUBLIC (current_function_decl) = 0;
/* Mark as artificial because it's not explicitly in the user's
source code. */
DECL_ARTIFICIAL (current_function_decl) = 1;
/* Mark this declaration as used to avoid spurious warnings. */
TREE_USED (current_function_decl) = 1;