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]

Re: -O3 -gdwarf-2 breaks on static function redeclared in local scope


I've fixed this with:

2000-07-08  Jason Merrill  <jason@redhat.com>

	* c-decl.c (duplicate_decls): Copy DECL_ABSTRACT_ORIGIN from
	DECL_ABSTRACT_ORIGIN, not DECL_ORIGIN.

*** c-decl.c.~1~	Tue Jul  4 00:21:33 2000
--- c-decl.c	Sat Jul  8 08:05:27 2000
*************** duplicate_decls (newdecl, olddecl, diffe
*** 1965,1971 ****
  	  DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
  	  DECL_ARGUMENTS (newdecl) = DECL_ARGUMENTS (olddecl);
  	  if (DECL_INLINE (newdecl))
! 	    DECL_ABSTRACT_ORIGIN (newdecl) = DECL_ORIGIN (olddecl);
  	}
      }
    if (different_binding_level)
--- 1965,1971 ----
  	  DECL_SAVED_INSNS (newdecl) = DECL_SAVED_INSNS (olddecl);
  	  DECL_ARGUMENTS (newdecl) = DECL_ARGUMENTS (olddecl);
  	  if (DECL_INLINE (newdecl))
! 	    DECL_ABSTRACT_ORIGIN (newdecl) = DECL_ABSTRACT_ORIGIN (olddecl);
  	}
      }
    if (different_binding_level)

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