summaryrefslogtreecommitdiff
path: root/gcc/cfganal.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-06 18:16:02 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-06 18:16:02 +0000
commit9ddc1858da9ed84c0171feaf01f18413d0732807 (patch)
tree6a9d361a83a319c68822bc2456b467fe3369f06b /gcc/cfganal.c
parenta36f8f2b0b584be3ae7194bbc2e959a89aa9f022 (diff)
downloadgcc-9ddc1858da9ed84c0171feaf01f18413d0732807.tar.gz
* cfganal.c (keep_with_call_p): Source for fixed_reg dest must
be a general_operand. Dest for function value must be a pseudo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49547 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r--gcc/cfganal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index 6a10236dfc9..17db86e2a2c 100644
--- a/gcc/cfganal.c
+++ b/gcc/cfganal.c
@@ -224,10 +224,13 @@ keep_with_call_p (insn)
if (INSN_P (insn) && (set = single_set (insn)) != NULL)
{
if (GET_CODE (SET_DEST (set)) == REG
- && fixed_regs[REGNO (SET_DEST (set))])
+ && fixed_regs[REGNO (SET_DEST (set))]
+ && general_operand (SET_SRC (set)))
return true;
if (GET_CODE (SET_SRC (set)) == REG
- && FUNCTION_VALUE_REGNO_P (REGNO (SET_SRC (set))))
+ && FUNCTION_VALUE_REGNO_P (REGNO (SET_SRC (set)))
+ && GET_CODE (SET_DEST (set)) == REG
+ && REGNO (SET_DEST (set)) >= FIRST_PSEUDO_REGISTER)
return true;
}
return false;