From 1b28cd06972a85be465cd1e9c7854f167a3b8157 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 14 Mar 2005 02:56:51 +0000 Subject: [PATCH] regclass.c (reg_class_superclasses, [...]): Make them static. * regclass.c (reg_class_superclasses, reg_class_subclasses): Make them static. * hard-reg-set.h: Remove the corresponding declarations. From-SVN: r96410 --- gcc/ChangeLog | 4 ++++ gcc/hard-reg-set.h | 8 -------- gcc/regclass.c | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d8fcc529242..eda99eb93f7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -6,6 +6,10 @@ * function.c (get_func_frame_size): Make it static. * function.h: Remove the corresponding type. + * regclass.c (reg_class_superclasses, reg_class_subclasses): + Make them static. + * hard-reg-set.h: Remove the corresponding declarations. + 2005-03-14 Alan Modra * config.gcc: Remove excess indentation. diff --git a/gcc/hard-reg-set.h b/gcc/hard-reg-set.h index c78527e4cf6..b101c5eb6e6 100644 --- a/gcc/hard-reg-set.h +++ b/gcc/hard-reg-set.h @@ -464,14 +464,6 @@ extern HARD_REG_SET reg_class_contents[N_REG_CLASSES]; extern unsigned int reg_class_size[N_REG_CLASSES]; -/* For each reg class, table listing all the containing classes. */ - -extern enum reg_class reg_class_superclasses[N_REG_CLASSES][N_REG_CLASSES]; - -/* For each reg class, table listing all the classes contained in it. */ - -extern enum reg_class reg_class_subclasses[N_REG_CLASSES][N_REG_CLASSES]; - /* For each pair of reg classes, a largest reg class contained in their union. */ diff --git a/gcc/regclass.c b/gcc/regclass.c index adfab02ad2c..78951cfd3da 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -172,11 +172,11 @@ unsigned int reg_class_size[N_REG_CLASSES]; /* For each reg class, table listing all the containing classes. */ -enum reg_class reg_class_superclasses[N_REG_CLASSES][N_REG_CLASSES]; +static enum reg_class reg_class_superclasses[N_REG_CLASSES][N_REG_CLASSES]; /* For each reg class, table listing all the classes contained in it. */ -enum reg_class reg_class_subclasses[N_REG_CLASSES][N_REG_CLASSES]; +static enum reg_class reg_class_subclasses[N_REG_CLASSES][N_REG_CLASSES]; /* For each pair of reg classes, a largest reg class contained in their union. */ -- 2.30.2