aboutsummaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1998-11-25 12:15:14 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1998-11-25 12:15:14 +0000
commit910bc42d0db5bab44a65433f065d817b71cb81c7 (patch)
treecb91760c594933a20e318bc948f3908f627eea36 /gcc/regclass.c
parent0b3d776a4260dc4dbecb16a0cd63aec58c96bb7d (diff)
downloadgcc-910bc42d0db5bab44a65433f065d817b71cb81c7.zip
gcc-910bc42d0db5bab44a65433f065d817b71cb81c7.tar.gz
gcc-910bc42d0db5bab44a65433f065d817b71cb81c7.tar.bz2
regclass.c (init_reg_sets): Move code that calculates tables dependent on reg_class_contents from here...
* regclass.c (init_reg_sets): Move code that calculates tables dependent on reg_class_contents from here... (init_reg_sets_1): To here. From-SVN: r23858
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 1c249ea..b442cc2 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -236,6 +236,25 @@ init_reg_sets ()
bcopy (initial_call_used_regs, call_used_regs, sizeof call_used_regs);
bzero (global_regs, sizeof global_regs);
+ /* Do any additional initialization regsets may need */
+ INIT_ONCE_REG_SET ();
+}
+
+/* After switches have been processed, which perhaps alter
+ `fixed_regs' and `call_used_regs', convert them to HARD_REG_SETs. */
+
+static void
+init_reg_sets_1 ()
+{
+ register unsigned int i, j;
+
+ /* This macro allows the fixed or call-used registers
+ and the register classes to depend on target flags. */
+
+#ifdef CONDITIONAL_REGISTER_USAGE
+ CONDITIONAL_REGISTER_USAGE;
+#endif
+
/* Compute number of hard regs in each class. */
bzero ((char *) reg_class_size, sizeof reg_class_size);
@@ -339,25 +358,6 @@ init_reg_sets ()
}
}
- /* Do any additional initialization regsets may need */
- INIT_ONCE_REG_SET ();
-}
-
-/* After switches have been processed, which perhaps alter
- `fixed_regs' and `call_used_regs', convert them to HARD_REG_SETs. */
-
-static void
-init_reg_sets_1 ()
-{
- register unsigned int i, j;
-
- /* This macro allows the fixed or call-used registers
- to depend on target flags. */
-
-#ifdef CONDITIONAL_REGISTER_USAGE
- CONDITIONAL_REGISTER_USAGE;
-#endif
-
/* Initialize "constant" tables. */
CLEAR_HARD_REG_SET (fixed_reg_set);