* decl2.c (mark_used): Do not synthesize thunks.

From-SVN: r60967
This commit is contained in:
Mark Mitchell 2003-01-07 01:34:37 +00:00 committed by Mark Mitchell
parent 63e5f5679c
commit 4c4646b541
2 changed files with 3 additions and 0 deletions

View 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.

View 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)