From 8a2b3848ff373b6333ee44b38133d864b7c0dcfa Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 18 Oct 2003 20:36:05 +0200 Subject: [PATCH] * integrate.c (copy_decl_for_inlining): Fix copying of copies. From-SVN: r72646 --- gcc/ChangeLog | 4 ++++ gcc/integrate.c | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5f20a90ee87..0b17a587d7f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-10-18 Jan Hubicka + + * integrate.c (copy_decl_for_inlining): Fix copying of copies. + 2003-10-18 Roger Sayle * libgcc.texi: Group multi-word types, such as "long double" and diff --git a/gcc/integrate.c b/gcc/integrate.c index 21a738ea237..ec1c7de0b1e 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -381,7 +381,10 @@ copy_decl_for_inlining (tree decl, tree from_fn, tree to_fn) /* Set the DECL_ABSTRACT_ORIGIN so the debugging routines know what declaration inspired this copy. */ - DECL_ABSTRACT_ORIGIN (copy) = DECL_ORIGIN (decl); + if (DECL_ABSTRACT_ORIGIN (decl)) + DECL_ABSTRACT_ORIGIN (copy) = DECL_ABSTRACT_ORIGIN (decl); + else + DECL_ABSTRACT_ORIGIN (copy) = DECL_ORIGIN (decl); /* The new variable/label has no RTL, yet. */ if (!TREE_STATIC (copy) && !DECL_EXTERNAL (copy)) -- 2.30.2