aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2007-06-28 18:31:53 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2007-06-28 18:31:53 +0000
commit32d49134012f300f8779a206ba1bdc4fc9198102 (patch)
treefbad88a7b668d55d6c67fb0c79656e669582cbb1 /gcc/cp
parent8aa19d9599d3d64501a13478a034a7bc14f6b502 (diff)
downloadgcc-32d49134012f300f8779a206ba1bdc4fc9198102.zip
gcc-32d49134012f300f8779a206ba1bdc4fc9198102.tar.gz
gcc-32d49134012f300f8779a206ba1bdc4fc9198102.tar.bz2
decl2.c (start_objects): Mark constructor-runnning function as artificial.
* decl2.c (start_objects): Mark constructor-runnning function as artificial. From-SVN: r126080
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl2.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6b661bd..55accab 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index b745183..9ad06b4 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;