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]
Other format: [Raw text]

[patch] Fix SH build failure


Hi,

The attached patch is to fix a tiny fallout from

Move RTL datastructures out of CFG:
http://gcc.gnu.org/ml/gcc-patches/2005-06/msg00978.html

and it fixes the current build failure on sh4-unknown-linux-gnu:

gcc -c   -g -O2 -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition    -DHAVE_CONFIG_H    -I. -I. -I../../ORIG/gcc/gcc -I../../ORIG/gcc/gcc/. -I../../ORIG/gcc/gcc/../include -I../../ORIG/gcc/gcc/../libcpp/include  ../../ORIG/gcc/gcc/integrate.c -o integrate.o
../../ORIG/gcc/gcc/integrate.c: In function `allocate_initial_values':
../../ORIG/gcc/gcc/integrate.c:409: error: structure has no member named `global_live_at_start'
../../ORIG/gcc/gcc/integrate.c:410: error: structure has no member named `global_live_at_start'
../../ORIG/gcc/gcc/integrate.c:411: error: structure has no member named `global_live_at_end'
../../ORIG/gcc/gcc/integrate.c:412: error: structure has no member named `global_live_at_end'

Tested on i686-pc-linux-gnu with bootstrap and "make -k check" without
regressions, though SH would be the unique user of ALLOCATE_INITIAL_VALUE
which activates the code in problem.
Ok for mainline?

Regards,
	kaz
--
2005-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>

	* integrate.c (allocate_initial_values): Update the references
	to global_live_at_start	and global_live_at_end.

--- ORIG/gcc/gcc/integrate.c	2005-06-10 09:11:28.000000000 +0900
+++ LOCAL/gcc/gcc/integrate.c	2005-06-19 19:35:27.000000000 +0900
@@ -406,10 +406,12 @@ allocate_initial_values (rtx *reg_equiv_
 	      /* Update global register liveness information.  */
 	      FOR_EACH_BB (bb)
 		{
-		  if (REGNO_REG_SET_P(bb->global_live_at_start, regno))
-		    SET_REGNO_REG_SET (bb->global_live_at_start, new_regno);
-		  if (REGNO_REG_SET_P(bb->global_live_at_end, regno))
-		    SET_REGNO_REG_SET (bb->global_live_at_end, new_regno);
+		  struct rtl_bb_info *info = bb->il.rtl;
+
+		  if (REGNO_REG_SET_P(info->global_live_at_start, regno))
+		    SET_REGNO_REG_SET (info->global_live_at_start, new_regno);
+		  if (REGNO_REG_SET_P(info->global_live_at_end, regno))
+		    SET_REGNO_REG_SET (info->global_live_at_end, new_regno);
 		}
 	    }
 	}


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