From a00f853394304f2754656c451130a0171543630e Mon Sep 17 00:00:00 2001 From: kazu Date: Fri, 19 Dec 2003 23:27:05 +0000 Subject: [PATCH] * dwarfout.c: Remove uses of "register" specifier in declarations of arguments and local variables. * gensupport.c: Likewise. * local-alloc.c: Likewise. * regclass.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74854 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 ++++++++ gcc/dwarfout.c | 12 ++++++------ gcc/gensupport.c | 2 +- gcc/local-alloc.c | 6 +----- gcc/regclass.c | 15 +++------------ 5 files changed, 19 insertions(+), 24 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c7497d7..671be01 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-12-19 Kazu Hirata + + * dwarfout.c: Remove uses of "register" specifier in + declarations of arguments and local variables. + * gensupport.c: Likewise. + * local-alloc.c: Likewise. + * regclass.c: Likewise. + 2003-12-19 Kelley Cook * config.guess: Remove. diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index cdc46b7..1e33538 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -3720,7 +3720,7 @@ output_formal_parameter_die (void *arg) { case 'd': /* We were called with some kind of a ..._DECL node. */ { - register tree origin = decl_ultimate_origin (node); + tree origin = decl_ultimate_origin (node); if (origin != NULL) abstract_origin_attribute (origin); @@ -4774,8 +4774,8 @@ output_type (tree type, tree containing_scope) { tree bases = BINFO_BASETYPES (binfo); tree accesses = BINFO_BASEACCESSES (binfo); - register int n_bases = BINFO_N_BASETYPES (binfo); - register int i; + int n_bases = BINFO_N_BASETYPES (binfo); + int i; for (i = 0; i < n_bases; i++) { @@ -5092,7 +5092,7 @@ output_decl (tree decl, tree containing_scope) { /* And its containing type. */ - register tree origin = decl_class_context (decl); + tree origin = decl_class_context (decl); if (origin) output_type (origin, containing_scope); } @@ -5337,7 +5337,7 @@ output_decl (tree decl, tree containing_scope) { /* And its containing type. */ - register tree origin = decl_class_context (decl); + tree origin = decl_class_context (decl); if (origin) output_type (origin, containing_scope); } @@ -5363,7 +5363,7 @@ output_decl (tree decl, tree containing_scope) { void (*func) (void *); - register tree origin = decl_ultimate_origin (decl); + tree origin = decl_ultimate_origin (decl); if (origin != NULL && TREE_CODE (origin) == PARM_DECL) func = output_formal_parameter_die; diff --git a/gcc/gensupport.c b/gcc/gensupport.c index 0d4a857..fede14a 100644 --- a/gcc/gensupport.c +++ b/gcc/gensupport.c @@ -842,7 +842,7 @@ process_define_cond_exec (void) static char * save_string (const char *s, int len) { - register char *result = xmalloc (len + 1); + char *result = xmalloc (len + 1); memcpy (result, s, len); result[len] = 0; diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 09c99a5..f3caba4 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -2293,11 +2293,7 @@ post_mark_life (int regno, enum machine_mode mode, int life, int birth, int death) { int j = HARD_REGNO_NREGS (regno, mode); -#ifdef HARD_REG_SET - /* Declare it register if it's a scalar. */ - register -#endif - HARD_REG_SET this_reg; + HARD_REG_SET this_reg; CLEAR_HARD_REG_SET (this_reg); while (--j >= 0) diff --git a/gcc/regclass.c b/gcc/regclass.c index 021c119..439f9f6 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -321,10 +321,7 @@ init_reg_sets_1 (void) { for (j = 0; j < N_REG_CLASSES; j++) { -#ifdef HARD_REG_SET - register /* Declare it register if it's a scalar. */ -#endif - HARD_REG_SET c; + HARD_REG_SET c; int k; COPY_HARD_REG_SET (c, reg_class_contents[i]); @@ -355,10 +352,7 @@ init_reg_sets_1 (void) { for (j = 0; j < N_REG_CLASSES; j++) { -#ifdef HARD_REG_SET - register /* Declare it register if it's a scalar. */ -#endif - HARD_REG_SET c; + HARD_REG_SET c; int k; COPY_HARD_REG_SET (c, reg_class_contents[i]); @@ -2544,10 +2538,7 @@ reg_class_subset_p (enum reg_class c1, enum reg_class c2) int reg_classes_intersect_p (enum reg_class c1, enum reg_class c2) { -#ifdef HARD_REG_SET - register -#endif - HARD_REG_SET c; + HARD_REG_SET c; if (c1 == c2) return 1; -- 2.7.4