diff options
author | J"orn Rennecke <amylaar@cygnus.co.uk> | 1998-01-26 18:13:41 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1998-01-26 10:13:41 -0800 |
commit | 2a851b5ccfc3c95025e154f5b4c930dd90c21527 (patch) | |
tree | 8401a7a70e946b01e5c7597c1298b5221a9fe170 /gcc/c-decl.c | |
parent | ac2f83cb38a4d1eb9b0ff4705f65bfdaa1b09eaa (diff) | |
download | gcc-2a851b5ccfc3c95025e154f5b4c930dd90c21527.zip gcc-2a851b5ccfc3c95025e154f5b4c930dd90c21527.tar.gz gcc-2a851b5ccfc3c95025e154f5b4c930dd90c21527.tar.bz2 |
Patch from Joern to fix dwarf1 bug: emit debug info for types defined in
parameter lists.
* c-decl.c (grokdeclarator): Get parameter tags from
last_function_parm_tags.
* dwarfout.c (output_formal_types): Set TREE_ASM_WRITTEN before
traversing the parameter types.
(output_type): No early exit for FUNCTION_TYPE / METHOD_TYPE context.
From-SVN: r17490
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index d7f5737..3c000e2 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4878,7 +4878,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized) { register tree link; - for (link = current_function_parm_tags; + for (link = last_function_parm_tags; link; link = TREE_CHAIN (link)) TYPE_CONTEXT (TREE_VALUE (link)) = type; |