This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to fix use of DECL_RTL in dbxout.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH to fix use of DECL_RTL in dbxout.c
- From: Jason Merrill <jason_merrill at redhat dot com>
- Date: 08 Jun 2001 22:56:53 +0100
One more...this was breaking several tests in the g++ suite run with -g.
Applied to trunk and branch, as 2.95.2 didn't crash on these tests.
2001-06-08 Jason Merrill <jason_merrill@redhat.com>
* dbxout.c (dbxout_symbol): Use DECL_RTL_SET_P.
*** dbxout.c.~1~ Fri Jun 8 19:08:24 2001
--- dbxout.c Fri Jun 8 17:22:54 2001
*************** dbxout_symbol (decl, local)
*** 1816,1822 ****
case RESULT_DECL:
/* Named return value, treat like a VAR_DECL. */
case VAR_DECL:
! if (DECL_RTL (decl) == 0)
return 0;
/* Don't mention a variable that is external.
Let the file that defines it describe it. */
--- 1816,1822 ----
case RESULT_DECL:
/* Named return value, treat like a VAR_DECL. */
case VAR_DECL:
! if (! DECL_RTL_SET_P (decl))
return 0;
/* Don't mention a variable that is external.
Let the file that defines it describe it. */