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 applied to sh.c: don't use ra.h / ra.c



Commited as obvious.
The code I have moved was written 2002 / 2003, so I checked the
list of Copyright years in sh.c and found that the 1996 entry got
garbled when decompressing from a year range.

2005-01-24  J"orn Rennecke <joern.rennecke@st.com>

	* sh.c (ra.h): Don't #include.
	(hard_regs_intersect_p): New function, resurrected from ra.c.

	* sh.c: Fix 1996 Copyright.

Index: config/sh/sh.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.c,v
retrieving revision 1.315
diff -p -r1.315 sh.c
*** config/sh/sh.c	30 Dec 2004 03:08:06 -0000	1.315
--- config/sh/sh.c	24 Jan 2005 16:00:06 -0000
***************
*** 1,5 ****
  /* Output routines for GCC for Renesas / SuperH SH.
!    Copyright (C) 1993, 1994, 1995, 1997, 1997, 1998, 1999, 2000, 2001, 2002,
     2003, 2004 Free Software Foundation, Inc.
     Contributed by Steve Chamberlain (sac@cygnus.com).
     Improved by Jim Wilson (wilson@cygnus.com).
--- 1,5 ----
  /* Output routines for GCC for Renesas / SuperH SH.
!    Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
     2003, 2004 Free Software Foundation, Inc.
     Contributed by Steve Chamberlain (sac@cygnus.com).
     Improved by Jim Wilson (wilson@cygnus.com).
*************** Boston, MA 02111-1307, USA.  */
*** 47,53 ****
  #include "real.h"
  #include "langhooks.h"
  #include "basic-block.h"
- #include "ra.h"
  #include "cfglayout.h"
  #include "intl.h"
  #include "sched-int.h"
--- 47,52 ----
*************** static bool sh_callee_copies (CUMULATIVE
*** 289,294 ****
--- 288,294 ----
  static int sh_arg_partial_bytes (CUMULATIVE_ARGS *, enum machine_mode,
  			         tree, bool);
  static int sh_dwarf_calling_convention (tree);
+ static int hard_regs_intersect_p (HARD_REG_SET *, HARD_REG_SET *);
  
  
  /* Initialize the GCC target structure.  */
*************** sh_init_cumulative_args (CUMULATIVE_ARGS
*** 10169,10172 ****
--- 10169,10187 ----
      }
  }
  
+ /* Determine if two hard register sets intersect.
+    Return 1 if they do.  */
+ 
+ static int
+ hard_regs_intersect_p (HARD_REG_SET *a, HARD_REG_SET *b)
+ {
+   HARD_REG_SET c;
+   COPY_HARD_REG_SET (c, *a);
+   AND_HARD_REG_SET (c, *b);
+   GO_IF_HARD_REG_SUBSET (c, reg_class_contents[(int) NO_REGS], lose);
+   return 1;
+ lose:
+   return 0;
+ }
+ 
  #include "gt-sh.h"

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