re PR debug/44367 (-O0 -g wrong DW_AT_location on c++ class retval)
authorJakub Jelinek <jakub@redhat.com>
Wed, 2 Jun 2010 19:52:07 +0000 (21:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 2 Jun 2010 19:52:07 +0000 (21:52 +0200)
commitadd86e09a5c4c09fbcf3088409a1eb60c47155db
treed7e122cc15138da7bd882493a8ba542065bf36b3
parent53e030f1439a414a0247a86fa76534f353558be4
re PR debug/44367 (-O0 -g wrong DW_AT_location on c++ class retval)

PR debug/44367
* semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P,
DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result.
Set DECL_VALUE_EXPR on var.

From-SVN: r160186
gcc/cp/ChangeLog
gcc/cp/semantics.c