This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
small fix for df.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: small fix for df.c
- From: Denis Chertykov <denisc at overta dot ru>
- Date: Sat, 11 Aug 2001 12:20:23 +0400
- Cc: denisc at overta dot ru
The `df_uses_record' duplicate uses for asms.
Example:
void foo (int i)
{
asm volatile ("any asm code %0" :: "r" (i));
return;
}
Dataflow summary:
n_regs = 59, n_defs = 4, n_uses = 3, n_bbs = 1
insn 4 bb 0 luid 1 defs { d0(58) } uses { u0(16) }
insn 10 bb 0 luid 2 defs { d3(19) d2(18) d1(17) } uses { u2(58) u1(58) }
Patch:
Sat Aug 11 12:12:55 2001 Denis Chertykov <denisc@overta.ru>
* df.c (df_uses_record): Return after recording all uses
in ASM_OPERANDS.
Index: df.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/df.c,v
retrieving revision 1.7
diff -c -3 -p -r1.7 df.c
*** df.c 2001/08/08 22:06:45 1.7
--- df.c 2001/08/11 08:21:20
*************** df_uses_record (df, loc, ref_type, bb, i
*** 1163,1168 ****
--- 1163,1169 ----
for (j = 0; j < ASM_OPERANDS_INPUT_LENGTH (x); j++)
df_uses_record (df, &ASM_OPERANDS_INPUT (x, j),
DF_REF_REG_USE, bb, insn);
+ return;
}
break;
}