dwarfout.c: Remove uses of "register" specifier in declarations of arguments and...
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 19 Dec 2003 23:27:05 +0000 (23:27 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 19 Dec 2003 23:27:05 +0000 (23:27 +0000)
* dwarfout.c: Remove uses of "register" specifier in
declarations of arguments and local variables.
* gensupport.c: Likewise.
* local-alloc.c: Likewise.
* regclass.c: Likewise.

From-SVN: r74854

gcc/ChangeLog
gcc/dwarfout.c
gcc/gensupport.c
gcc/local-alloc.c
gcc/regclass.c

index c7497d7b47d428f43df0da7638c5cc539bc13bf1..671be016f0ec87779691409a22b520d4611bbb11 100644 (file)
@@ -1,3 +1,11 @@
+2003-12-19  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * 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  <kelleycook@wideopenwest.com>
 
        * config.guess: Remove.
index cdc46b7065ffda380334124c697418cdb2f3b9ef..1e335389f49c91e83bb3241afef627f1e74d96bd 100644 (file)
@@ -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;
index 0d4a8570c6920e48f6e6aee7b2e126b96e10baff..fede14a513028510da61a22530895cce4bc04056 100644 (file)
@@ -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;
index 09c99a5e8d7e6a479579c8266296b3aacc93a139..f3caba4f6a6baddac95dca465aef57574386eaef 100644 (file)
@@ -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)
index 021c119b2b1b832c644c2c502ad037be80abcc3c..439f9f6b77340909c3c226ed7ce294e12d1b4b86 100644 (file)
@@ -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;