This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Wierdness in make_memloc in reload.c
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc at gcc dot gnu dot org
- Date: Fri, 28 Dec 01 11:15:23 EST
- Subject: Wierdness in make_memloc in reload.c
This function has an arg AD, which is not documented. From the name,
one would think it's an address, but the only thing done with it is to take
its mode and use that as the mode for the resulting memref. That
makes no sense if indeed it's an address.
Indeed, it appears that most, but not all, of the time it is indeed called
with an address. But at least once it isn't. And one time, PUT_MODE is
called on the resulting memref, which also makes no sense.
So something is going on here.
This is not new: it's been this way since at least 2.8.1.