decl2.c (start_objects): Mark constructor-runnning function as artificial.
authorGeoffrey Keating <geoffk@apple.com>
Thu, 28 Jun 2007 18:31:53 +0000 (18:31 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Thu, 28 Jun 2007 18:31:53 +0000 (18:31 +0000)
* decl2.c (start_objects): Mark constructor-runnning function
as artificial.

From-SVN: r126080

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 6b661bd3df4a595569852d08f6699c82e7885489..55accabcd0668829962c4a8c9c72893405450da9 100644 (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
index b745183f1af962b7f587cbaec54899bb14bde5ca..9ad06b49ef806508195cbf698fd73b8c2f1ac4ce 100644 (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;