Commit b2d5abe3 by Jeffrey A Law Committed by Jeff Law

* rs6000.md (find_addr_reg): Handle LO_SUM addresses.

From-SVN: r27684
parent 6690d24c
Mon Jun 21 22:13:06 1999 Jeffrey A Law (law@cygnus.com)
* rs6000.md (find_addr_reg): Handle LO_SUM addresses.
Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com> Mon Jun 21 20:10:42 1999 Richard Henderson <rth@cygnus.com>
* collect2.c (main): Log frame table count. * collect2.c (main): Log frame table count.
......
...@@ -5690,6 +5690,9 @@ struct rtx_def * ...@@ -5690,6 +5690,9 @@ struct rtx_def *
find_addr_reg (addr) find_addr_reg (addr)
rtx addr; rtx addr;
{ {
if (GET_CODE (addr) == LO_SUM)
addr = XEXP (addr, 0);
while (GET_CODE (addr) == PLUS) while (GET_CODE (addr) == PLUS)
{ {
if (GET_CODE (XEXP (addr, 0)) == REG) if (GET_CODE (XEXP (addr, 0)) == REG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment