df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.

* df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.

From-SVN: r125894
This commit is contained in:
Eric Botcazou 2007-06-20 22:26:07 +02:00 committed by Eric Botcazou
parent 7a9dcd47e8
commit 7e657ec235
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
* df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
PR target/32335

View File

@ -3081,9 +3081,16 @@ df_get_call_refs (struct df_collection_rec * collection_rec,
DF_REF_REG_USE, bb, insn, flags);
else if (GET_CODE (XEXP (note, 0)) == CLOBBER)
{
unsigned int regno = REGNO (XEXP (XEXP (note, 0), 0));
if (!bitmap_bit_p (defs_generated, regno))
df_defs_record (collection_rec, XEXP (note, 0), bb, insn, flags);
if (REG_P (XEXP (XEXP (note, 0), 0)))
{
unsigned int regno = REGNO (XEXP (XEXP (note, 0), 0));
if (!bitmap_bit_p (defs_generated, regno))
df_defs_record (collection_rec, XEXP (note, 0), bb,
insn, flags);
}
else
df_uses_record (collection_rec, &XEXP (note, 0),
DF_REF_REG_USE, bb, insn, flags);
}
}