Commit a30caf5c by Denis Chertykov Committed by Jeff Law

final.c (shorten_branches): Correctly compute length of asms without operands.

        * final.c (shorten_branches): Correctly compute length of
        asms without operands.

From-SVN: r31230
parent dd1bd863
Tue Jan 4 23:59:26 2000 Denis Chertykov <denisc@overta.ru>
* final.c (shorten_branches): Correctly compute length of
asms without operands.
Tue Jan 4 22:55:41 2000 Steve Chamberlain <sac@pobox.com>
* configure.in: Add pj target.
......
/* Convert RTL to assembler code and output it, for GNU compiler.
Copyright (C) 1987, 88, 89, 92-98, 1999 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 89, 92-99, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
......@@ -1282,7 +1282,7 @@ shorten_branches (first)
* GET_MODE_SIZE (GET_MODE (body)));
/* Alignment is handled by ADDR_VEC_ALIGN. */
}
else if (asm_noperands (body) >= 0)
else if (GET_CODE (body) == ASM_INPUT || asm_noperands (body) >= 0)
insn_lengths[uid] = asm_insn_count (body) * insn_default_length (insn);
else if (GET_CODE (body) == SEQUENCE)
{
......@@ -1302,7 +1302,8 @@ shorten_branches (first)
int inner_uid = INSN_UID (inner_insn);
int inner_length;
if (asm_noperands (PATTERN (XVECEXP (body, 0, i))) >= 0)
if (GET_CODE (body) == ASM_INPUT
|| asm_noperands (PATTERN (XVECEXP (body, 0, i))) >= 0)
inner_length = (asm_insn_count (PATTERN (inner_insn))
* insn_default_length (inner_insn));
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment