aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2004-08-04 06:33:07 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-08-04 06:33:07 +0000
commitca0433930a57f9e3d054317febc39febfded4174 (patch)
treeb5708efe1a37ccfec2180c79c3e542a420b76481 /gcc/c-decl.c
parent7e2e8179ee0887e17549cde85e47b92d1164d6eb (diff)
downloadgcc-ca0433930a57f9e3d054317febc39febfded4174.zip
gcc-ca0433930a57f9e3d054317febc39febfded4174.tar.gz
gcc-ca0433930a57f9e3d054317febc39febfded4174.tar.bz2
re PR target/14680 (reload_cse_simplify_operands triggers internal error on sparc64 when compiling netpbm)
PR 14680 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl on the new decl. From-SVN: r85545
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index cbdafbb..88a664b 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -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). */