OSDN Git Service

PR 14680
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Aug 2004 06:33:07 +0000 (06:33 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Aug 2004 06:33:07 +0000 (06:33 +0000)
* c-decl.c (record_builtin_type): Call debug_hooks->type_decl
on the new decl.

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

gcc/ChangeLog
gcc/c-decl.c

index d4dde17..eddeed8 100644 (file)
@@ -1,5 +1,9 @@
 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
 
+       PR 14680
+       * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
+       on the new decl.
+
        PR 13596
        * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
        functions, broken out of dbxout_block.
index cbdafbb..88a664b 100644 (file)
@@ -6598,12 +6598,15 @@ identifier_global_value (tree t)
 void
 record_builtin_type (enum rid rid_index, const char *name, tree type)
 {
-  tree id;
+  tree id, decl;
   if (name == 0)
     id = ridpointers[(int) rid_index];
   else
     id = get_identifier (name);
-  pushdecl (build_decl (TYPE_DECL, id, type));
+  decl = build_decl (TYPE_DECL, id, type);
+  pushdecl (decl);
+  if (debug_hooks->type_decl)
+    debug_hooks->type_decl (decl, false);
 }
 
 /* Build the void_list_node (void_type_node having been created).  */