diff options
author | Mark Mitchell <mark@codesourcery.com> | 2003-01-07 01:34:37 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2003-01-07 01:34:37 +0000 |
commit | 4c4646b5417fb0ca62db6ef74c75d0283ed5d3ca (patch) | |
tree | dda8bb59b336f68156eb695afd8f5838ea1550fa | |
parent | 63e5f5679cf5daf7c27ca1c9a585cef733f857ce (diff) | |
download | gcc-4c4646b5417fb0ca62db6ef74c75d0283ed5d3ca.zip gcc-4c4646b5417fb0ca62db6ef74c75d0283ed5d3ca.tar.gz gcc-4c4646b5417fb0ca62db6ef74c75d0283ed5d3ca.tar.bz2 |
* decl2.c (mark_used): Do not synthesize thunks.
From-SVN: r60967
-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) |