OSDN Git Service

PR debug/34535
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2007 08:28:16 +0000 (08:28 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2007 08:28:16 +0000 (08:28 +0000)
* tree-mudflap.c (mf_make_builtin): Make decl artificial
and don't emit debug info for it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131195 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-mudflap.c

index 2cbba25..c3dc952 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 7022f28..950ad8c 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;
 }