summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-01 23:38:46 +0000
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>2002-02-01 23:38:46 +0000
commit6f14033a406f88974e41c9395030afb056dfa2a4 (patch)
tree99393e22256bb0de9c34957cb75ae46297c67299
parentb193f2d548d17b9c10bceaf51aa14669d8e68f9c (diff)
downloadgcc-6f14033a406f88974e41c9395030afb056dfa2a4.tar.gz
* cfganal.c: Include tm_p.h.
(keep_with_call_p): Fix the test that determines if a register holds the return value of a call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49415 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cfganal.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 281e86454bc..31aa4d77354 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-01 Janis Johnson <janis187@us.ibm.com>
+
+ * cfganal.c: Include tm_p.h.
+ (keep_with_call_p): Fix the test that determines if a register holds
+ the return value of a call.
+
2002-02-01 DJ Delorie <dj@redhat.com>
* config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index a57b25a1ffd..6a10236dfc9 100644
--- a/gcc/cfganal.c
+++ b/gcc/cfganal.c
@@ -26,8 +26,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "hard-reg-set.h"
#include "basic-block.h"
#include "toplev.h"
-
#include "obstack.h"
+#include "tm_p.h"
/* Store the data structures necessary for depth-first search. */
struct depth_first_search_dsS {
@@ -227,7 +227,7 @@ keep_with_call_p (insn)
&& fixed_regs[REGNO (SET_DEST (set))])
return true;
if (GET_CODE (SET_SRC (set)) == REG
- && REG_FUNCTION_VALUE_P (SET_SRC (set)))
+ && FUNCTION_VALUE_REGNO_P (REGNO (SET_SRC (set))))
return true;
}
return false;