This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -O3 -gdwarf-2 breaks on static function redeclared in local scope
- To: Alexandre Oliva <aoliva at cygnus dot com>
- Subject: Re: -O3 -gdwarf-2 breaks on static function redeclared in local scope
- From: Jason Merrill <jason at redhat dot com>
- Date: 08 Jul 2000 22:22:54 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <orln12mh2g.fsf@tamanduatei.dcc.unicamp.br>
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)