cfganal.c: Include tm_p.h.
authorJanis Johnson <janis187@us.ibm.com>
Fri, 1 Feb 2002 23:38:46 +0000 (23:38 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Fri, 1 Feb 2002 23:38:46 +0000 (23:38 +0000)
* 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.

From-SVN: r49415

gcc/ChangeLog
gcc/cfganal.c

index 281e86454bc6b5d904afd84a9745d85e0edae9e8..31aa4d77354b76c033f9bdd2f2637947c007365e 100644 (file)
@@ -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
index a57b25a1ffd9f3c78d520c6c389a17d49978acfd..6a10236dfc97e74e66513908ea69bb7c3598cfd3 100644 (file)
@@ -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;