From 32d49134012f300f8779a206ba1bdc4fc9198102 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Thu, 28 Jun 2007 18:31:53 +0000 Subject: [PATCH] decl2.c (start_objects): Mark constructor-runnning function as artificial. * decl2.c (start_objects): Mark constructor-runnning function as artificial. From-SVN: r126080 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl2.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6b661bd3df4..55accabcd06 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2007-06-28 Geoffrey Keating + + * decl2.c (start_objects): Mark constructor-runnning function + as artificial. + 2007-06-26 Simon Martin PR c++/32111 diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index b745183f1af..9ad06b49ef8 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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;