diff options
Diffstat (limited to 'gcc-4.4.0/gcc/cp/decl2.c')
-rw-r--r-- | gcc-4.4.0/gcc/cp/decl2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.4.0/gcc/cp/decl2.c b/gcc-4.4.0/gcc/cp/decl2.c index b895dfcd8..551e17f54 100644 --- a/gcc-4.4.0/gcc/cp/decl2.c +++ b/gcc-4.4.0/gcc/cp/decl2.c @@ -3294,7 +3294,8 @@ cxx_callgraph_analyze_expr (tree *tp, int *walk_subtrees ATTRIBUTE_UNUSED) mark_decl_referenced (vtbl); } else if (DECL_CONTEXT (t) - && TREE_CODE (DECL_CONTEXT (t)) == FUNCTION_DECL) + && TREE_CODE (DECL_CONTEXT (t)) == FUNCTION_DECL + && !cgraph_is_auxiliary (DECL_CONTEXT (t))) /* If we need a static variable in a function, then we need the containing function. */ mark_decl_referenced (DECL_CONTEXT (t)); |