]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR debug/34535 (FAIL: libmudflap.c++/fail24-frag.cxx ICE)
authorJakub Jelinek <jakub@redhat.com>
Thu, 27 Dec 2007 08:28:16 +0000 (09:28 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 27 Dec 2007 08:28:16 +0000 (09:28 +0100)
PR debug/34535
* tree-mudflap.c (mf_make_builtin): Make decl artificial
and don't emit debug info for it.

From-SVN: r131195

gcc/ChangeLog
gcc/tree-mudflap.c

index 2cbba254700c19de0feef56118a0f5d1563cc201..c3dc9526ed393fb3681366df9dba0a93fc9935ec 100644 (file)
@@ -1,3 +1,9 @@
+2007-12-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR debug/34535
+       * tree-mudflap.c (mf_make_builtin): Make decl artificial
+       and don't emit debug info for it.
+
 2007-12-26  Anatoly Sokolov <aesok@post.ru>
 
        * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Move AT90USB82 
index 7022f28d84daf467a6f95c7ac3fc8fddd6319645..950ad8c2fd593d12d16c87331bad2a17e57a3ce5 100644 (file)
@@ -301,6 +301,10 @@ mf_make_builtin (enum tree_code category, const char *name, tree type)
   TREE_PUBLIC (decl) = 1;
   DECL_EXTERNAL (decl) = 1;
   lang_hooks.decls.pushdecl (decl);
+  /* The decl was declared by the compiler.  */
+  DECL_ARTIFICIAL (decl) = 1;
+  /* And we don't want debug info for it.  */
+  DECL_IGNORED_P (decl) = 1;
   return decl;
 }