diff options
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9522ae6..b1b1a75 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e5d1f02..85b6a2e 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -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) |