This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: `shorten_branches' and length of `asm' without operands
- To: Denis Chertykov <denisc at overta dot ru>
- Subject: Re: `shorten_branches' and length of `asm' without operands
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 04 Jan 2000 23:57:55 -0700
- cc: gcc at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <199912111730.UAA02404@tigris.overta.ru>you write:
> Hello All.
>
> While I'm play with my port (Atmel AVR) I have founded a strange thing
> in final.c shorten_branches ()
>
> shorten_branches don't calculate insn length if insn is a `asm'
> without operands.
>
> Is this a bug ?
> Or I must calculate `asm' insn length inside ADJUST_INSN_LENGTH ?
>
> As I understand `get_attr_length' calculates `asm' insn length properly.
>
>
> Patch for correct final.c:
Thanks. Please don't forget to include ChangeLog entries in your future
patch submissions.
I've installed this patch.
Thanks,
jeff