diff options
author | Jeffrey A Law <law@cygnus.com> | 2001-05-11 22:07:58 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2001-05-11 16:07:58 -0600 |
commit | 8598a9a23232f91e55d76dab9800eefe5ab319cd (patch) | |
tree | 6f37a32a470890e65d2ba1e271ab092228560704 /gcc | |
parent | 37ff4d286d8b3c2d86747af39f9e0d6f7651af1c (diff) | |
download | gcc-8598a9a23232f91e55d76dab9800eefe5ab319cd.zip gcc-8598a9a23232f91e55d76dab9800eefe5ab319cd.tar.gz gcc-8598a9a23232f91e55d76dab9800eefe5ab319cd.tar.bz2 |
gcse.c (insert_insn_end_bb): Do not search for assignments to non-argumment registers that are mentioned in...
* gcse.c (insert_insn_end_bb): Do not search for assignments to
non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.
From-SVN: r41976
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/gcse.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d5acce9..5c73642 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ Fri May 11 15:50:13 2001 Jeffrey A Law (law@cygnus.com) + * gcse.c (insert_insn_end_bb): Do not search for assignments to + non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE. + * toplev.c (compile_file): Move comment for opening output file to just before the code that opens the output file. @@ -4787,6 +4787,11 @@ insert_insn_end_bb (expr, bb, pre) if (REGNO (XEXP (XEXP (p, 0), 0)) >= FIRST_PSEUDO_REGISTER) abort (); + /* We only care about registers which can hold function + arguments. */ + if (! FUNCTION_ARG_REGNO_P (REGNO (XEXP (XEXP (p, 0), 0)))) + continue; + SET_HARD_REG_BIT (parm_regs, REGNO (XEXP (XEXP (p, 0), 0))); nparm_regs++; } |