diff options
author | Joern Rennecke <amylaar@gcc.gnu.org> | 2005-01-24 16:07:21 +0000 |
---|---|---|
committer | Joern Rennecke <amylaar@gcc.gnu.org> | 2005-01-24 16:07:21 +0000 |
commit | 5b71da26eb66c15cff057e4e85d242a7852e19e5 (patch) | |
tree | 0c92ec07b24cbe6b5b230bd6f2e2caea580e334c | |
parent | d5f625555adfef72898749680608b2570a6cb293 (diff) | |
download | gcc-5b71da26eb66c15cff057e4e85d242a7852e19e5.zip gcc-5b71da26eb66c15cff057e4e85d242a7852e19e5.tar.gz gcc-5b71da26eb66c15cff057e4e85d242a7852e19e5.tar.bz2 |
sh.c (ra.h): Don't #include.
* sh.c (ra.h): Don't #include.
(hard_regs_intersect_p): New function, resurrected from ra.c.
N.B this is Copyright 2002/2003
* sh.c: Fix 1996 Copyright.
From-SVN: r94163
-rw-r--r-- | gcc/config/sh/sh.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 358f9b7..de5d31d 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -1,5 +1,5 @@ /* Output routines for GCC for Renesas / SuperH SH. - Copyright (C) 1993, 1994, 1995, 1997, 1997, 1998, 1999, 2000, 2001, 2002, + 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). @@ -47,7 +47,6 @@ Boston, MA 02111-1307, USA. */ #include "real.h" #include "langhooks.h" #include "basic-block.h" -#include "ra.h" #include "cfglayout.h" #include "intl.h" #include "sched-int.h" @@ -289,6 +288,7 @@ static bool sh_callee_copies (CUMULATIVE_ARGS *, enum machine_mode, 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. */ @@ -10169,4 +10169,19 @@ sh_init_cumulative_args (CUMULATIVE_ARGS * pcum, } } +/* 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" |