Wierdness in make_memloc in reload.c

Richard Kenner kenner@vlsi1.ultra.nyu.edu
Fri Dec 28 10:43:00 GMT 2001


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.



More information about the Gcc mailing list