aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@gcc.gnu.org>2005-04-02 17:08:07 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2005-04-02 17:08:07 +0000
commit596b98ceab6f7072c54e542694a80774fb294949 (patch)
tree91913620b789051aec1d96f7ad92a37fce830aeb /gcc/dwarf2out.c
parente18d4a1904df31796cd4f10df5fb44fa9ef68d17 (diff)
downloadgcc-596b98ceab6f7072c54e542694a80774fb294949.zip
gcc-596b98ceab6f7072c54e542694a80774fb294949.tar.gz
gcc-596b98ceab6f7072c54e542694a80774fb294949.tar.bz2
re PR debug/19345 (Segmentation fault with VLA and inlining and dwarf2)
gcc/ChangeLog: PR debug/19345 * dwarf2out.c (add_abstract_origin_attribute): Revert accidental change checked in along with 2005-03-03's patch for debug/20253. * tree-inline.c (remap_type): Remap TYPE_STUB_DECL. (remap_decl): Insert type decl in map earlier. gcc/testsuite/ChangeLog: * gcc.dg/pr19345.c: New test. From-SVN: r97449
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index bf76113..6b08ab6 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -10568,11 +10568,7 @@ add_abstract_origin_attribute (dw_die_ref die, tree origin)
if (TYPE_P (fn))
fn = TYPE_STUB_DECL (fn);
- /* TYPE_STUB_DECL may have given us a NULL, which decl_function_context
- won't like. */
- if (fn)
- fn = decl_function_context (fn);
-
+ fn = decl_function_context (fn);
if (fn)
dwarf2out_abstract_function (fn);
}