This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH to fix use of DECL_RTL in dbxout.c


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]