From: Eric Botcazou Date: Mon, 7 Feb 2005 19:32:59 +0000 (+0100) Subject: re PR debug/19327 (gcc.c-torture/execute/921215-1.c compilation -O3 -g) X-Git-Tag: releases/gcc-4.0.0~1035 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b950a32e341adc4457bc428e9b261764ed8456ef;p=thirdparty%2Fgcc.git re PR debug/19327 (gcc.c-torture/execute/921215-1.c compilation -O3 -g) PR debug/19327 * dbxout.c (dbxout_symbol) : Skip inline instance of nested functions. From-SVN: r94709 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 92bf707c685a..cc7b2408a33f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-02-07 Eric Botcazou + + PR debug/19327 + * dbxout.c (dbxout_symbol) : Skip inline instance + of nested functions. + 2005-02-07 Jonathan Wakely * doc/extend.texi: Document deprecated extensions allowing diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c595a84cb6f8..e7a7738816d9 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -2429,6 +2429,9 @@ dbxout_symbol (tree decl, int local ATTRIBUTE_UNUSED) context = decl_function_context (decl); if (context == current_function_decl) break; + /* Don't mention an inline instance of a nested function. */ + if (context && DECL_FROM_INLINE (decl)) + break; if (!MEM_P (DECL_RTL (decl)) || GET_CODE (XEXP (DECL_RTL (decl), 0)) != SYMBOL_REF) break;