OSDN Git Service

* cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2003 20:08:22 +0000 (20:08 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2003 20:08:22 +0000 (20:08 +0000)
note containing an EXPR_LIST, process all the arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67132 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cse.c

index b3fe1bd..b09cb30 100644 (file)
@@ -1,3 +1,8 @@
+2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
+       note containing an EXPR_LIST, process all the arguments.
+
 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
                               Andreas Jaeger  <aj@suse.de>
 
 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
                               Andreas Jaeger  <aj@suse.de>
 
index 01c583c..671fd06 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -7512,7 +7512,21 @@ count_reg_usage (x, counts, dest, incr)
 
       note = find_reg_equal_equiv_note (x);
       if (note)
 
       note = find_reg_equal_equiv_note (x);
       if (note)
-        count_reg_usage (XEXP (note, 0), counts, NULL_RTX, incr);
+       {
+         rtx eqv = XEXP (note, 0);
+
+         if (GET_CODE (eqv) == EXPR_LIST)
+         /* This REG_EQUAL note describes the result of a function call.
+            Process all the arguments.  */
+           do
+             {
+               count_reg_usage (XEXP (eqv, 0), counts, NULL_RTX, incr);
+               eqv = XEXP (eqv, 1);
+             }
+           while (eqv && GET_CODE (eqv) == EXPR_LIST);
+         else
+           count_reg_usage (eqv, counts, NULL_RTX, incr);
+       }
       return;
 
     case EXPR_LIST:
       return;
 
     case EXPR_LIST: