aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-12-19 23:27:05 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-12-19 23:27:05 +0000
commit49a27995217d813ec99f6c8b4be15c04cf668c57 (patch)
tree389e90c73773aee72d7ddedf988df74e642a5bed
parent6fe68b374016c44a0dc26c00080fea053598e287 (diff)
downloadgcc-49a27995217d813ec99f6c8b4be15c04cf668c57.zip
gcc-49a27995217d813ec99f6c8b4be15c04cf668c57.tar.gz
gcc-49a27995217d813ec99f6c8b4be15c04cf668c57.tar.bz2
dwarfout.c: Remove uses of "register" specifier in declarations of arguments and local...
* 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
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/dwarfout.c12
-rw-r--r--gcc/gensupport.c2
-rw-r--r--gcc/local-alloc.c6
-rw-r--r--gcc/regclass.c15
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 <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.
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;