* decl2.c (mark_used): Do not synthesize thunks.
authorMark Mitchell <mark@codesourcery.com>
Tue, 7 Jan 2003 01:34:37 +0000 (01:34 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 7 Jan 2003 01:34:37 +0000 (01:34 +0000)
From-SVN: r60967

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

index 9522ae6f168b5c12ae59b04c29d36b08ab8f0203..b1b1a7591d1c4cedf30dd816c2a41b509560ce52 100644 (file)
@@ -1,5 +1,7 @@
 2003-01-06  Mark Mitchell  <mark@codesourcery.com>
 
+       * decl2.c (mark_used): Do not synthesize thunks.
+
        * class.c (layout_class_type): Correct handling of unnamed
        bitfields wider than their types.
 
index e5d1f02c5766baadc768b63745b53e34c008801b..85b6a2ede38924ffab6abce47881a3f3d3b10314 100644 (file)
@@ -4614,6 +4614,7 @@ mark_used (tree decl)
   if (TREE_CODE (decl) == FUNCTION_DECL
       && DECL_NONSTATIC_MEMBER_FUNCTION_P (decl)
       && DECL_ARTIFICIAL (decl) 
+      && !DECL_THUNK_P (decl)
       && ! DECL_INITIAL (decl)
       /* Kludge: don't synthesize for default args.  */
       && current_function_decl)