This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

reload1.c temporary change applied



Joern is on vacation and I'm too busy to fix this at the moment.  Either Joern
or I will address this problem in the near future.

        * reload1.c (reload_reg_free_before_p): Hack.  Return 0 if EQUIV
        is nonzero.  This is temporary!

Index: reload1.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/./gcc/reload1.c,v
retrieving revision 1.83
diff -c -3 -p -r1.83 reload1.c
*** reload1.c	1998/10/17 01:45:13	1.83
--- reload1.c	1998/10/19 17:29:40
*************** reload_reg_free_before_p (regno, opnum, 
*** 5044,5049 ****
--- 5044,5062 ----
  {
    int i;
  
+   /* The code to handle EQUIV below is wrong.
+ 
+      If we wnat to know if a value in a particular reload register is available
+      at a particular point in time during reloading, we must check *all*
+      prior reloads to see if they clobber the value.
+ 
+      Note this is significantly different from determining when a register is
+      free for usage in a reload!
+ 
+      This change is temporary.  It will go away.  */
+   if (equiv)
+     return 0;
+ 
    switch (type)
      {
      case RELOAD_FOR_OTHER_ADDRESS:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]