This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: failing to copy NOTEs
- To: Bernd Schmidt <bernds at balti dot cygnus dot co dot uk>
- Subject: Re: failing to copy NOTEs
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 2 Feb 2000 01:34:09 -0800
- Cc: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>, gcc-patches at gcc dot gnu dot org
- References: <oru2jvf3u6.fsf@garnize.lsd.ic.unicamp.br> <Pine.LNX.4.10.10001311330050.3413-100000@balti.cygnus.co.uk>
On Mon, Jan 31, 2000 at 01:44:26PM +0000, Bernd Schmidt wrote:
> I've had a brief look. While the patch probably isn't wrong, I think there
> is another problem lurking in this code. The abort you get from the testcase
> happens when copy_rtx_and_substitute is called from integrate_decl_tree
> (the note is the DECL_RTL of some decl). Later on, the note is "copied"
> again (using emit_note), when processing the insn chain. This means you'll
> get two copies of it, the one in the copied DECL_RTL being different from
> the one in the insn chain, which is most likely not what's intented.
Hmm. While what you say is true, I can't seem to make it matter
when it comes to the debug info.
I think the best short-term solution is to revert the jump.c hunk
causing the problems.
r~