This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
alias code -- minor nits
- To: jfc at mit dot edu
- Subject: alias code -- minor nits
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 27 Oct 1997 00:49:57 -0700
- Cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
The updated alias code exposed two minor bugs in the old alias code --
namely that struct_value_incoming_rtx and static_chain_rtx need to
be put in the tenative base values array since they might be hard
regs with pointers at function entry.
I have the following code in init_alias_analysis to deal with them:
if (struct_value_incoming_rtx
&& GET_CODE (struct_value_incoming_rtx) == REG)
new_reg_base_value[REGNO (struct_value_incoming_rtx)]
= gen_rtx (ADDRESS, Pmode, struct_value_incoming_rtx);
if (static_chain_rtx
&& GET_CODE (static_chain_rtx) == REG)
new_reg_base_value[REGNO (static_chain_rtx)]
= gen_rtx (ADDRESS, Pmode, static_chain_rtx);
Jeff