This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: constified note_stores
- From: Ian Lance Taylor <iant at google dot com>
- To: Joern Rennecke <joernr at arc dot com>
- Cc: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>, gcc at gcc dot gnu dot org
- Date: Mon, 09 Jun 2008 16:24:58 -0700
- Subject: Re: constified note_stores
- References: <20080609224328.GK32358@elsdt-razorfish.arc.com>
Joern Rennecke <joernr@arc.com> writes:
> I have been using note_stores to modify selected assignments. Now when I
> try to move this code to gcc 4.4, I find that I get a warning because
> my walker function takes a non-const rtx - and if I make it take a const rtx,
> there will be a warning somewhere inside because there is a code path
> where a SET_SRC is modified.
> data is in use to point to a libiberty hash table.
>
> So, am I supposed to ignore the warning?
> Roll my own copy of the original note_stores?
> Resurrect the original note_stores in rtlanal.c (by whatever name)?
Use CONST_CAST_RTX where necessary.
Ian