From c3a1ef9da91830ce359ad89a5cfec2fa9de509ef Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Fri, 15 Jun 2007 17:31:53 +0000 Subject: [PATCH] * rtlanal.c (note_stores): Improve documentation. From-SVN: r125746 --- gcc/ChangeLog | 4 ++++ gcc/rtlanal.c | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f83983d98f1..be3b820705c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-06-15 Mark Mitchell + + * rtlanal.c (note_stores): Improve documentation. + 2007-06-15 Bernd Schmidt * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL, diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 3a26d8f490e..3cdb76a16bd 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1396,10 +1396,13 @@ reg_overlap_mentioned_p (rtx x, rtx in) } /* Call FUN on each register or MEM that is stored into or clobbered by X. - (X would be the pattern of an insn). - FUN receives two arguments: - the REG, MEM, CC0 or PC being stored in or clobbered, - the SET or CLOBBER rtx that does the store. + (X would be the pattern of an insn). DATA is an arbitrary pointer, + ignored by note_stores, but passed to FUN. + + FUN receives three arguments: + 1. the REG, MEM, CC0 or PC being stored in or clobbered, + 2. the SET or CLOBBER rtx that does the store, + 3. the pointer DATA provided to note_stores. If the item being stored in or clobbered is a SUBREG of a hard register, the SUBREG will be passed. */