From: jason Date: Wed, 15 Dec 1999 09:03:06 +0000 (+0000) Subject: * optimize.c (expand_call_inline): Set BLOCK_ABSTRACT_ORIGIN on the X-Git-Tag: upstream/4.9.2~104161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=091c99aa4c76628b84ba1245c5af59b8565d1592;p=platform%2Fupstream%2Flinaro-gcc.git * optimize.c (expand_call_inline): Set BLOCK_ABSTRACT_ORIGIN on the outermost block to point to the inlined function decl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30945 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0614ab0..35a5690 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 1999-12-14 Jason Merrill + * optimize.c (expand_call_inline): Set BLOCK_ABSTRACT_ORIGIN on the + outermost block to point to the inlined function decl. + * error.c (dump_decl): operator==, not operator ==. (op_to_string): Likewise. diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index 50ee83e..5dcecf1 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -614,6 +614,11 @@ expand_call_inline (tp, walk_subtrees, data) STMT_EXPR_STMT (expr) = scope_stmt; id->scope_stmt = scope_stmt; + /* Tell the debugging backends that this block represents the + outermost scope of the inlined function. */ + if (SCOPE_STMT_BLOCK (scope_stmt)) + BLOCK_ABSTRACT_ORIGIN (SCOPE_STMT_BLOCK (scope_stmt)) = DECL_ORIGIN (fn); + /* Declare the return variable for the function. */ STMT_EXPR_STMT (expr) = chainon (STMT_EXPR_STMT (expr),