This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
constified note_stores
- From: Joern Rennecke <joernr at arc dot com>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>, gcc at gcc dot gnu dot org
- Date: Mon, 9 Jun 2008 23:43:28 +0100
- Subject: constified note_stores
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)?