]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR debug/19327 (gcc.c-torture/execute/921215-1.c compilation -O3 -g)
authorEric Botcazou <ebotcazou@libertysurf.fr>
Mon, 7 Feb 2005 19:32:59 +0000 (20:32 +0100)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 7 Feb 2005 19:32:59 +0000 (19:32 +0000)
PR debug/19327
* dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
of nested functions.

From-SVN: r94709

gcc/ChangeLog
gcc/dbxout.c

index 92bf707c685ad6c6228f92841ba99de12c35b59e..cc7b2408a33fe88776cffa34570f521a0554a472 100644 (file)
@@ -1,3 +1,9 @@
+2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
+
+       PR debug/19327
+       * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
+       of nested functions.
+
 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
 
        * doc/extend.texi: Document deprecated extensions allowing
index c595a84cb6f8b8397227e5fafb8464b4e0d223e5..e7a7738816d9a3c5cdd75c464f4e5f4310ee1061 100644 (file)
@@ -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;