OSDN Git Service

PR debug/41558
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Oct 2009 19:50:57 +0000 (19:50 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Oct 2009 19:50:57 +0000 (19:50 +0000)
commit966e6f7f866b504f60038734b214046a551c1e51
tree7d28fdb724db7f0330b86b43540f99b54afc7865
parenteb725716f2df5c936773a5b4ca7ca0c2999fde9e
PR debug/41558
* dwarf2out.c (loc_by_reference): Removed.
(dw_loc_list_1): New function.
(dw_loc_list): Remove toplev argument, add want_address argument.
Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
(loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
want_address == 2 to dw_loc_list.  For successful dw_loc_list
set have_address to 1 only if want_address is not 0.

* gcc.dg/guality/guality.exp: Move gdb-test proc into...
* lib/gcc-gdb-test.exp: ... here.  New file.
* gfortran.dg/guality/guality.exp: New file.
* gfortran.dg/guality/pr41558.f90: New test.
* gfortran.dg/guality/arg1.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152467 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/dwarf2out.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/guality/guality.exp
gcc/testsuite/gfortran.dg/guality/arg1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/guality/guality.exp [new file with mode: 0644]
gcc/testsuite/gfortran.dg/guality/pr41558.f90 [new file with mode: 0644]
gcc/testsuite/lib/gcc-gdb-test.exp [new file with mode: 0644]