GNU Binutils with patches for OS216
Révision | aa1ee363bce1eac43bf9824069e231d7113f7453 (tree) |
---|---|
l'heure | 2003-09-17 03:56:35 |
Auteur | Andrew Cagney <cagney@redh...> |
Commiter | Andrew Cagney |
2003-09-16 Andrew Cagney <cagney@redhat.com>
* buildsym.c: Remove more occurances of "register".
* coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
* environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
* gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
* infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
* printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
* sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
* standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
* utils.c, valops.c, values.c, xcoffread.c: Ditto.
@@ -1,3 +1,15 @@ | ||
1 | +2003-09-16 Andrew Cagney <cagney@redhat.com> | |
2 | + | |
3 | + * buildsym.c: Remove more occurances of "register". | |
4 | + * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto. | |
5 | + * environ.c, eval.c, f-valprint.c, findvar.c: Ditto. | |
6 | + * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto. | |
7 | + * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto. | |
8 | + * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto. | |
9 | + * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto. | |
10 | + * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto. | |
11 | + * utils.c, valops.c, values.c, xcoffread.c: Ditto. | |
12 | + | |
1 | 13 | 2003-09-16 Corinna Vinschen <vinschen@redhat.com> |
2 | 14 | |
3 | 15 | * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register |
@@ -709,7 +709,7 @@ pop_subfile (void) | ||
709 | 709 | line vector for SUBFILE. */ |
710 | 710 | |
711 | 711 | void |
712 | -record_line (register struct subfile *subfile, int line, CORE_ADDR pc) | |
712 | +record_line (struct subfile *subfile, int line, CORE_ADDR pc) | |
713 | 713 | { |
714 | 714 | struct linetable_entry *e; |
715 | 715 | /* Ignore the dummy line number in libg.o */ |
@@ -313,7 +313,7 @@ cs_section_address (struct coff_symbol *cs, bfd *abfd) | ||
313 | 313 | or for associating a new type with the index. */ |
314 | 314 | |
315 | 315 | static struct type ** |
316 | -coff_lookup_type (register int index) | |
316 | +coff_lookup_type (int index) | |
317 | 317 | { |
318 | 318 | if (index >= type_vector_length) |
319 | 319 | { |
@@ -1119,9 +1119,9 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms, | ||
1119 | 1119 | in internal_auxent form, and skip any other auxents. */ |
1120 | 1120 | |
1121 | 1121 | static void |
1122 | -read_one_sym (register struct coff_symbol *cs, | |
1123 | - register struct internal_syment *sym, | |
1124 | - register union internal_auxent *aux) | |
1122 | +read_one_sym (struct coff_symbol *cs, | |
1123 | + struct internal_syment *sym, | |
1124 | + union internal_auxent *aux) | |
1125 | 1125 | { |
1126 | 1126 | int i; |
1127 | 1127 |
@@ -1348,8 +1348,8 @@ free_linetab_cleanup (void *ignore) | ||
1348 | 1348 | #endif |
1349 | 1349 | |
1350 | 1350 | static void |
1351 | -enter_linenos (long file_offset, register int first_line, | |
1352 | - register int last_line, struct objfile *objfile) | |
1351 | +enter_linenos (long file_offset, int first_line, | |
1352 | + int last_line, struct objfile *objfile) | |
1353 | 1353 | { |
1354 | 1354 | char *rawptr; |
1355 | 1355 | struct internal_lineno lptr; |
@@ -1431,9 +1431,9 @@ patch_opaque_types (struct symtab *s) | ||
1431 | 1431 | TYPE_CODE (SYMBOL_TYPE (real_sym)) == TYPE_CODE_PTR && |
1432 | 1432 | TYPE_LENGTH (TYPE_TARGET_TYPE (SYMBOL_TYPE (real_sym))) != 0) |
1433 | 1433 | { |
1434 | - register char *name = DEPRECATED_SYMBOL_NAME (real_sym); | |
1435 | - register int hash = hashname (name); | |
1436 | - register struct symbol *sym, *prev; | |
1434 | + char *name = DEPRECATED_SYMBOL_NAME (real_sym); | |
1435 | + int hash = hashname (name); | |
1436 | + struct symbol *sym, *prev; | |
1437 | 1437 | |
1438 | 1438 | prev = 0; |
1439 | 1439 | for (sym = opaque_type_chain[hash]; sym;) |
@@ -1472,8 +1472,8 @@ patch_opaque_types (struct symtab *s) | ||
1472 | 1472 | } |
1473 | 1473 | |
1474 | 1474 | static struct symbol * |
1475 | -process_coff_symbol (register struct coff_symbol *cs, | |
1476 | - register union internal_auxent *aux, | |
1475 | +process_coff_symbol (struct coff_symbol *cs, | |
1476 | + union internal_auxent *aux, | |
1477 | 1477 | struct objfile *objfile) |
1478 | 1478 | { |
1479 | 1479 | struct symbol *sym |
@@ -1659,7 +1659,7 @@ process_coff_symbol (register struct coff_symbol *cs, | ||
1659 | 1659 | TYPE_CODE (TYPE_TARGET_TYPE (SYMBOL_TYPE (sym))) != |
1660 | 1660 | TYPE_CODE_UNDEF) |
1661 | 1661 | { |
1662 | - register int i = hashname (DEPRECATED_SYMBOL_NAME (sym)); | |
1662 | + int i = hashname (DEPRECATED_SYMBOL_NAME (sym)); | |
1663 | 1663 | |
1664 | 1664 | SYMBOL_VALUE_CHAIN (sym) = opaque_type_chain[i]; |
1665 | 1665 | opaque_type_chain[i] = sym; |
@@ -1696,8 +1696,8 @@ process_coff_symbol (register struct coff_symbol *cs, | ||
1696 | 1696 | /* Decode a coff type specifier; return the type that is meant. */ |
1697 | 1697 | |
1698 | 1698 | static struct type * |
1699 | -decode_type (register struct coff_symbol *cs, unsigned int c_type, | |
1700 | - register union internal_auxent *aux) | |
1699 | +decode_type (struct coff_symbol *cs, unsigned int c_type, | |
1700 | + union internal_auxent *aux) | |
1701 | 1701 | { |
1702 | 1702 | struct type *type = 0; |
1703 | 1703 | unsigned int new_c_type; |
@@ -1718,7 +1718,7 @@ decode_type (register struct coff_symbol *cs, unsigned int c_type, | ||
1718 | 1718 | else if (ISARY (c_type)) |
1719 | 1719 | { |
1720 | 1720 | int i, n; |
1721 | - register unsigned short *dim; | |
1721 | + unsigned short *dim; | |
1722 | 1722 | struct type *base_type, *index_type, *range_type; |
1723 | 1723 | |
1724 | 1724 | /* Define an array type. */ |
@@ -1777,8 +1777,8 @@ decode_type (register struct coff_symbol *cs, unsigned int c_type, | ||
1777 | 1777 | return the type that the function returns. */ |
1778 | 1778 | |
1779 | 1779 | static struct type * |
1780 | -decode_function_type (register struct coff_symbol *cs, unsigned int c_type, | |
1781 | - register union internal_auxent *aux) | |
1780 | +decode_function_type (struct coff_symbol *cs, unsigned int c_type, | |
1781 | + union internal_auxent *aux) | |
1782 | 1782 | { |
1783 | 1783 | if (aux->x_sym.x_tagndx.l == 0) |
1784 | 1784 | cs->c_naux = 0; /* auxent refers to function, not base type */ |
@@ -1789,8 +1789,8 @@ decode_function_type (register struct coff_symbol *cs, unsigned int c_type, | ||
1789 | 1789 | /* basic C types */ |
1790 | 1790 | |
1791 | 1791 | static struct type * |
1792 | -decode_base_type (register struct coff_symbol *cs, unsigned int c_type, | |
1793 | - register union internal_auxent *aux) | |
1792 | +decode_base_type (struct coff_symbol *cs, unsigned int c_type, | |
1793 | + union internal_auxent *aux) | |
1794 | 1794 | { |
1795 | 1795 | struct type *type; |
1796 | 1796 |
@@ -752,8 +752,8 @@ dbx_symfile_finish (struct objfile *objfile) | ||
752 | 752 | { |
753 | 753 | if (HEADER_FILES (objfile) != NULL) |
754 | 754 | { |
755 | - register int i = N_HEADER_FILES (objfile); | |
756 | - register struct header_file *hfiles = HEADER_FILES (objfile); | |
755 | + int i = N_HEADER_FILES (objfile); | |
756 | + struct header_file *hfiles = HEADER_FILES (objfile); | |
757 | 757 | |
758 | 758 | while (--i >= 0) |
759 | 759 | { |
@@ -1715,7 +1715,7 @@ read_dbx_symtab (struct objfile *objfile) | ||
1715 | 1715 | if (pst && STREQ (namestring, pst->filename)) |
1716 | 1716 | continue; |
1717 | 1717 | { |
1718 | - register int i; | |
1718 | + int i; | |
1719 | 1719 | for (i = 0; i < includes_used; i++) |
1720 | 1720 | if (STREQ (namestring, psymtab_include_list[i])) |
1721 | 1721 | { |
@@ -240,7 +240,7 @@ dcache_hit (DCACHE *dcache, CORE_ADDR addr) | ||
240 | 240 | be written is. */ |
241 | 241 | |
242 | 242 | static int |
243 | -dcache_write_line (DCACHE *dcache, register struct dcache_block *db) | |
243 | +dcache_write_line (DCACHE *dcache, struct dcache_block *db) | |
244 | 244 | { |
245 | 245 | CORE_ADDR memaddr; |
246 | 246 | char *myaddr; |
@@ -5912,7 +5912,7 @@ dwarf2_extension (struct die_info *die) | ||
5912 | 5912 | /* Convert a DIE tag into its string name. */ |
5913 | 5913 | |
5914 | 5914 | static char * |
5915 | -dwarf_tag_name (register unsigned tag) | |
5915 | +dwarf_tag_name (unsigned tag) | |
5916 | 5916 | { |
5917 | 5917 | switch (tag) |
5918 | 5918 | { |
@@ -6044,7 +6044,7 @@ dwarf_tag_name (register unsigned tag) | ||
6044 | 6044 | /* Convert a DWARF attribute code into its string name. */ |
6045 | 6045 | |
6046 | 6046 | static char * |
6047 | -dwarf_attr_name (register unsigned attr) | |
6047 | +dwarf_attr_name (unsigned attr) | |
6048 | 6048 | { |
6049 | 6049 | switch (attr) |
6050 | 6050 | { |
@@ -6235,7 +6235,7 @@ dwarf_attr_name (register unsigned attr) | ||
6235 | 6235 | /* Convert a DWARF value form code into its string name. */ |
6236 | 6236 | |
6237 | 6237 | static char * |
6238 | -dwarf_form_name (register unsigned form) | |
6238 | +dwarf_form_name (unsigned form) | |
6239 | 6239 | { |
6240 | 6240 | switch (form) |
6241 | 6241 | { |
@@ -6289,7 +6289,7 @@ dwarf_form_name (register unsigned form) | ||
6289 | 6289 | /* Convert a DWARF stack opcode into its string name. */ |
6290 | 6290 | |
6291 | 6291 | static char * |
6292 | -dwarf_stack_op_name (register unsigned op) | |
6292 | +dwarf_stack_op_name (unsigned op) | |
6293 | 6293 | { |
6294 | 6294 | switch (op) |
6295 | 6295 | { |
@@ -6612,7 +6612,7 @@ dwarf_bool_name (unsigned mybool) | ||
6612 | 6612 | /* Convert a DWARF type code into its string name. */ |
6613 | 6613 | |
6614 | 6614 | static char * |
6615 | -dwarf_type_encoding_name (register unsigned enc) | |
6615 | +dwarf_type_encoding_name (unsigned enc) | |
6616 | 6616 | { |
6617 | 6617 | switch (enc) |
6618 | 6618 | { |
@@ -6643,7 +6643,7 @@ dwarf_type_encoding_name (register unsigned enc) | ||
6643 | 6643 | |
6644 | 6644 | #if 0 |
6645 | 6645 | static char * |
6646 | -dwarf_cfi_name (register unsigned cfi_opc) | |
6646 | +dwarf_cfi_name (unsigned cfi_opc) | |
6647 | 6647 | { |
6648 | 6648 | switch (cfi_opc) |
6649 | 6649 | { |
@@ -44,7 +44,7 @@ make_environ (void) | ||
44 | 44 | /* Free an environment and all the strings in it. */ |
45 | 45 | |
46 | 46 | void |
47 | -free_environ (register struct environ *e) | |
47 | +free_environ (struct environ *e) | |
48 | 48 | { |
49 | 49 | char **vector = e->vector; |
50 | 50 |
@@ -59,7 +59,7 @@ free_environ (register struct environ *e) | ||
59 | 59 | that all strings in these environments are safe to free. */ |
60 | 60 | |
61 | 61 | void |
62 | -init_environ (register struct environ *e) | |
62 | +init_environ (struct environ *e) | |
63 | 63 | { |
64 | 64 | extern char **environ; |
65 | 65 | int i; |
@@ -80,8 +80,8 @@ init_environ (register struct environ *e) | ||
80 | 80 | |
81 | 81 | while (--i >= 0) |
82 | 82 | { |
83 | - register int len = strlen (e->vector[i]); | |
84 | - register char *new = (char *) xmalloc (len + 1); | |
83 | + int len = strlen (e->vector[i]); | |
84 | + char *new = (char *) xmalloc (len + 1); | |
85 | 85 | memcpy (new, e->vector[i], len + 1); |
86 | 86 | e->vector[i] = new; |
87 | 87 | } |
@@ -67,8 +67,8 @@ static LONGEST init_array_element (struct value *, struct value *, | ||
67 | 67 | LONGEST, LONGEST); |
68 | 68 | |
69 | 69 | static struct value * |
70 | -evaluate_subexp (struct type *expect_type, register struct expression *exp, | |
71 | - register int *pos, enum noside noside) | |
70 | +evaluate_subexp (struct type *expect_type, struct expression *exp, | |
71 | + int *pos, enum noside noside) | |
72 | 72 | { |
73 | 73 | return (*exp->language_defn->evaluate_exp) (expect_type, exp, pos, noside); |
74 | 74 | } |
@@ -176,7 +176,7 @@ evaluate_type (struct expression *exp) | ||
176 | 176 | returning the label. Otherwise, does nothing and returns NULL. */ |
177 | 177 | |
178 | 178 | static char * |
179 | -get_label (register struct expression *exp, int *pos) | |
179 | +get_label (struct expression *exp, int *pos) | |
180 | 180 | { |
181 | 181 | if (exp->elts[*pos].opcode == OP_LABELED) |
182 | 182 | { |
@@ -195,8 +195,8 @@ get_label (register struct expression *exp, int *pos) | ||
195 | 195 | |
196 | 196 | static struct value * |
197 | 197 | evaluate_struct_tuple (struct value *struct_val, |
198 | - register struct expression *exp, | |
199 | - register int *pos, enum noside noside, int nargs) | |
198 | + struct expression *exp, | |
199 | + int *pos, enum noside noside, int nargs) | |
200 | 200 | { |
201 | 201 | struct type *struct_type = check_typedef (VALUE_TYPE (struct_val)); |
202 | 202 | struct type *substruct_type = struct_type; |
@@ -338,7 +338,7 @@ evaluate_struct_tuple (struct value *struct_val, | ||
338 | 338 | |
339 | 339 | static LONGEST |
340 | 340 | init_array_element (struct value *array, struct value *element, |
341 | - register struct expression *exp, register int *pos, | |
341 | + struct expression *exp, int *pos, | |
342 | 342 | enum noside noside, LONGEST low_bound, LONGEST high_bound) |
343 | 343 | { |
344 | 344 | LONGEST index; |
@@ -379,7 +379,7 @@ init_array_element (struct value *array, struct value *element, | ||
379 | 379 | |
380 | 380 | struct value * |
381 | 381 | evaluate_subexp_standard (struct type *expect_type, |
382 | - register struct expression *exp, register int *pos, | |
382 | + struct expression *exp, int *pos, | |
383 | 383 | enum noside noside) |
384 | 384 | { |
385 | 385 | enum exp_opcode op; |
@@ -2063,7 +2063,7 @@ nosideret: | ||
2063 | 2063 | then only the type of the result need be correct. */ |
2064 | 2064 | |
2065 | 2065 | static struct value * |
2066 | -evaluate_subexp_for_address (register struct expression *exp, register int *pos, | |
2066 | +evaluate_subexp_for_address (struct expression *exp, int *pos, | |
2067 | 2067 | enum noside noside) |
2068 | 2068 | { |
2069 | 2069 | enum exp_opcode op; |
@@ -2143,8 +2143,8 @@ evaluate_subexp_for_address (register struct expression *exp, register int *pos, | ||
2143 | 2143 | */ |
2144 | 2144 | |
2145 | 2145 | struct value * |
2146 | -evaluate_subexp_with_coercion (register struct expression *exp, | |
2147 | - register int *pos, enum noside noside) | |
2146 | +evaluate_subexp_with_coercion (struct expression *exp, | |
2147 | + int *pos, enum noside noside) | |
2148 | 2148 | { |
2149 | 2149 | enum exp_opcode op; |
2150 | 2150 | int pc; |
@@ -2180,7 +2180,7 @@ evaluate_subexp_with_coercion (register struct expression *exp, | ||
2180 | 2180 | Advance *POS over the subexpression. */ |
2181 | 2181 | |
2182 | 2182 | static struct value * |
2183 | -evaluate_subexp_for_sizeof (register struct expression *exp, register int *pos) | |
2183 | +evaluate_subexp_for_sizeof (struct expression *exp, int *pos) | |
2184 | 2184 | { |
2185 | 2185 | enum exp_opcode op; |
2186 | 2186 | int pc; |
@@ -631,7 +631,7 @@ info_common_command (char *comname, int from_tty) | ||
631 | 631 | } |
632 | 632 | else |
633 | 633 | { |
634 | - register struct minimal_symbol *msymbol = | |
634 | + struct minimal_symbol *msymbol = | |
635 | 635 | lookup_minimal_symbol_by_pc (get_frame_pc (fi)); |
636 | 636 | |
637 | 637 | if (msymbol != NULL) |
@@ -723,7 +723,7 @@ there_is_a_visible_common_named (char *comname) | ||
723 | 723 | } |
724 | 724 | else |
725 | 725 | { |
726 | - register struct minimal_symbol *msymbol = | |
726 | + struct minimal_symbol *msymbol = | |
727 | 727 | lookup_minimal_symbol_by_pc (fi->pc); |
728 | 728 | |
729 | 729 | if (msymbol != NULL) |
@@ -391,7 +391,7 @@ symbol_read_needs_frame (struct symbol *sym) | ||
391 | 391 | If FRAME is NULL, use the deprecated_selected_frame. */ |
392 | 392 | |
393 | 393 | struct value * |
394 | -read_var_value (register struct symbol *var, struct frame_info *frame) | |
394 | +read_var_value (struct symbol *var, struct frame_info *frame) | |
395 | 395 | { |
396 | 396 | struct value *v; |
397 | 397 | struct type *type = SYMBOL_TYPE (var); |
@@ -730,7 +730,7 @@ value_from_register (struct type *type, int regnum, struct frame_info *frame) | ||
730 | 730 | address. */ |
731 | 731 | |
732 | 732 | struct value * |
733 | -locate_var_value (register struct symbol *var, struct frame_info *frame) | |
733 | +locate_var_value (struct symbol *var, struct frame_info *frame) | |
734 | 734 | { |
735 | 735 | CORE_ADDR addr = 0; |
736 | 736 | struct type *type = SYMBOL_TYPE (var); |
@@ -1020,7 +1020,7 @@ smash_to_method_type (struct type *type, struct type *domain, | ||
1020 | 1020 | "union ", or "enum ". If the type has a NULL name, return NULL. */ |
1021 | 1021 | |
1022 | 1022 | char * |
1023 | -type_name_no_tag (register const struct type *type) | |
1023 | +type_name_no_tag (const struct type *type) | |
1024 | 1024 | { |
1025 | 1025 | if (TYPE_TAG_NAME (type) != NULL) |
1026 | 1026 | return TYPE_TAG_NAME (type); |
@@ -354,8 +354,8 @@ gnuv2_baseclass_offset (struct type *type, int index, char *valaddr, | ||
354 | 354 | if (BASETYPE_VIA_VIRTUAL (type, index)) |
355 | 355 | { |
356 | 356 | /* Must hunt for the pointer to this virtual baseclass. */ |
357 | - register int i, len = TYPE_NFIELDS (type); | |
358 | - register int n_baseclasses = TYPE_N_BASECLASSES (type); | |
357 | + int i, len = TYPE_NFIELDS (type); | |
358 | + int n_baseclasses = TYPE_N_BASECLASSES (type); | |
359 | 359 | |
360 | 360 | /* First look for the virtual baseclass pointer |
361 | 361 | in the fields. */ |
@@ -321,7 +321,7 @@ h8300_next_prologue_insn (CORE_ADDR addr, | ||
321 | 321 | */ |
322 | 322 | |
323 | 323 | static CORE_ADDR |
324 | -h8300_examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit, | |
324 | +h8300_examine_prologue (CORE_ADDR ip, CORE_ADDR limit, | |
325 | 325 | CORE_ADDR after_prolog_fp, CORE_ADDR *fsr, |
326 | 326 | struct frame_info *fi) |
327 | 327 | { |
@@ -2068,7 +2068,7 @@ hppa_push_arguments (int nargs, struct value **args, CORE_ADDR sp, | ||
2068 | 2068 | gets the value from the stack rather than from the buffer where all the |
2069 | 2069 | registers were saved when the function called completed. */ |
2070 | 2070 | struct value * |
2071 | -hppa_value_returned_from_stack (register struct type *valtype, CORE_ADDR addr) | |
2071 | +hppa_value_returned_from_stack (struct type *valtype, CORE_ADDR addr) | |
2072 | 2072 | { |
2073 | 2073 | struct value *val; |
2074 | 2074 |
@@ -1337,7 +1337,7 @@ environment_info (char *var, int from_tty) | ||
1337 | 1337 | { |
1338 | 1338 | if (var) |
1339 | 1339 | { |
1340 | - register char *val = get_in_environ (inferior_environ, var); | |
1340 | + char *val = get_in_environ (inferior_environ, var); | |
1341 | 1341 | if (val) |
1342 | 1342 | { |
1343 | 1343 | puts_filtered (var); |
@@ -1354,7 +1354,7 @@ environment_info (char *var, int from_tty) | ||
1354 | 1354 | } |
1355 | 1355 | else |
1356 | 1356 | { |
1357 | - register char **vector = environ_vector (inferior_environ); | |
1357 | + char **vector = environ_vector (inferior_environ); | |
1358 | 1358 | while (*vector) |
1359 | 1359 | { |
1360 | 1360 | puts_filtered (*vector++); |
@@ -508,7 +508,7 @@ push_parse_stack (void) | ||
508 | 508 | /* Initialize new frame with previous content */ |
509 | 509 | if (top_stack) |
510 | 510 | { |
511 | - register struct parse_stack *prev = new->prev; | |
511 | + struct parse_stack *prev = new->prev; | |
512 | 512 | |
513 | 513 | *new = *top_stack; |
514 | 514 | top_stack->prev = new; |
@@ -2936,7 +2936,7 @@ parse_partial_symbols (struct objfile *objfile) | ||
2936 | 2936 | if (pst && STREQ (namestring, pst->filename)) |
2937 | 2937 | continue; |
2938 | 2938 | { |
2939 | - register int i; | |
2939 | + int i; | |
2940 | 2940 | for (i = 0; i < includes_used; i++) |
2941 | 2941 | if (STREQ (namestring, psymtab_include_list[i])) |
2942 | 2942 | { |
@@ -4438,7 +4438,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod | ||
4438 | 4438 | keeping the symtab sorted */ |
4439 | 4439 | |
4440 | 4440 | static struct symbol * |
4441 | -mylookup_symbol (char *name, register struct block *block, | |
4441 | +mylookup_symbol (char *name, struct block *block, | |
4442 | 4442 | domain_enum domain, enum address_class class) |
4443 | 4443 | { |
4444 | 4444 | struct dict_iterator iter; |
@@ -4568,8 +4568,8 @@ sort_blocks (struct symtab *s) | ||
4568 | 4568 | compare_blocks); |
4569 | 4569 | |
4570 | 4570 | { |
4571 | - register CORE_ADDR high = 0; | |
4572 | - register int i, j = BLOCKVECTOR_NBLOCKS (bv); | |
4571 | + CORE_ADDR high = 0; | |
4572 | + int i, j = BLOCKVECTOR_NBLOCKS (bv); | |
4573 | 4573 | |
4574 | 4574 | for (i = FIRST_LOCAL_BLOCK; i < j; i++) |
4575 | 4575 | if (high < BLOCK_END (BLOCKVECTOR_BLOCK (bv, i))) |
@@ -148,7 +148,7 @@ add_minsym_to_demangled_hash_table (struct minimal_symbol *sym, | ||
148 | 148 | names (the dynamic linker deals with the duplication). */ |
149 | 149 | |
150 | 150 | struct minimal_symbol * |
151 | -lookup_minimal_symbol (register const char *name, const char *sfile, | |
151 | +lookup_minimal_symbol (const char *name, const char *sfile, | |
152 | 152 | struct objfile *objf) |
153 | 153 | { |
154 | 154 | struct objfile *objfile; |
@@ -268,7 +268,7 @@ lookup_minimal_symbol (register const char *name, const char *sfile, | ||
268 | 268 | This function only searches the mangled (linkage) names. */ |
269 | 269 | |
270 | 270 | struct minimal_symbol * |
271 | -lookup_minimal_symbol_text (register const char *name, const char *sfile, | |
271 | +lookup_minimal_symbol_text (const char *name, const char *sfile, | |
272 | 272 | struct objfile *objf) |
273 | 273 | { |
274 | 274 | struct objfile *objfile; |
@@ -345,8 +345,9 @@ lookup_minimal_symbol_text (register const char *name, const char *sfile, | ||
345 | 345 | This function only searches the mangled (linkage) names. */ |
346 | 346 | |
347 | 347 | struct minimal_symbol * |
348 | -lookup_minimal_symbol_solib_trampoline (register const char *name, | |
349 | - const char *sfile, struct objfile *objf) | |
348 | +lookup_minimal_symbol_solib_trampoline (const char *name, | |
349 | + const char *sfile, | |
350 | + struct objfile *objf) | |
350 | 351 | { |
351 | 352 | struct objfile *objfile; |
352 | 353 | struct minimal_symbol *msymbol; |
@@ -2589,7 +2589,7 @@ find_proc_desc (CORE_ADDR pc, struct frame_info *next_frame, int cur_frame) | ||
2589 | 2589 | to have their own proc_descs, and even if they don't, |
2590 | 2590 | heuristic_proc_desc knows how to create them! */ |
2591 | 2591 | |
2592 | - register struct linked_proc_info *link; | |
2592 | + struct linked_proc_info *link; | |
2593 | 2593 | |
2594 | 2594 | for (link = linked_proc_desc_table; link; link = link->next) |
2595 | 2595 | if (PROC_LOW_ADDR (&link->info) <= pc |
@@ -275,7 +275,7 @@ decode_format (char **string_ptr, int oformat, int osize) | ||
275 | 275 | This is used to pad hex numbers so they line up. */ |
276 | 276 | |
277 | 277 | static void |
278 | -print_formatted (struct value *val, register int format, int size, | |
278 | +print_formatted (struct value *val, int format, int size, | |
279 | 279 | struct ui_file *stream) |
280 | 280 | { |
281 | 281 | struct type *type = check_typedef (VALUE_TYPE (val)); |
@@ -255,7 +255,7 @@ vx_create_inferior (char *exec_file, char *args, char **env) | ||
255 | 255 | argument string ARGSTRING. */ |
256 | 256 | |
257 | 257 | static void |
258 | -parse_args (register char *arg_string, arg_array *arg_struct) | |
258 | +parse_args (char *arg_string, arg_array *arg_struct) | |
259 | 259 | { |
260 | 260 | int arg_count = 0; /* number of arguments */ |
261 | 261 | int arg_index = 0; |
@@ -295,7 +295,7 @@ parse_args (register char *arg_string, arg_array *arg_struct) | ||
295 | 295 | to the first non-white character. */ |
296 | 296 | |
297 | 297 | static char * |
298 | -skip_white_space (register char *p) | |
298 | +skip_white_space (char *p) | |
299 | 299 | { |
300 | 300 | while (*p == ' ' || *p == '\t') |
301 | 301 | p++; |
@@ -307,7 +307,7 @@ skip_white_space (register char *p) | ||
307 | 307 | if no whitespace is found. */ |
308 | 308 | |
309 | 309 | static char * |
310 | -find_white_space (register char *p) | |
310 | +find_white_space (char *p) | |
311 | 311 | { |
312 | 312 | int c; |
313 | 313 |
@@ -1139,7 +1139,7 @@ vx_open (char *args, int from_tty) | ||
1139 | 1139 | pLoadFile = &loadTable.tbl_ent[i]; |
1140 | 1140 | #ifdef WRS_ORIG |
1141 | 1141 | { |
1142 | - register int desc; | |
1142 | + int desc; | |
1143 | 1143 | struct cleanup *old_chain; |
1144 | 1144 | char *fullname = NULL; |
1145 | 1145 |
@@ -450,10 +450,10 @@ retry: | ||
450 | 450 | /* send the packet in buffer. */ |
451 | 451 | |
452 | 452 | static void |
453 | -putpacket (register char *buffer) | |
453 | +putpacket (char *buffer) | |
454 | 454 | { |
455 | - register int checksum; | |
456 | - register int count; | |
455 | + int checksum; | |
456 | + int count; | |
457 | 457 | |
458 | 458 | /* $<packet info>#<checksum>. */ |
459 | 459 | do |
@@ -1845,7 +1845,7 @@ sh_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum) | ||
1845 | 1845 | fprintf_filtered (file, "\t(raw 0x"); |
1846 | 1846 | for (j = 0; j < register_size (gdbarch, regnum); j++) |
1847 | 1847 | { |
1848 | - register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j | |
1848 | + int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j | |
1849 | 1849 | : register_size (gdbarch, regnum) - 1 - j; |
1850 | 1850 | fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[idx]); |
1851 | 1851 | } |
@@ -2602,7 +2602,7 @@ sh_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum) | ||
2602 | 2602 | fprintf_filtered (file, "\t(raw 0x"); |
2603 | 2603 | for (j = 0; j < register_size (gdbarch, regnum); j++) |
2604 | 2604 | { |
2605 | - register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j | |
2605 | + int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j | |
2606 | 2606 | : register_size (gdbarch, regnum) - 1 - j; |
2607 | 2607 | fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[idx]); |
2608 | 2608 | } |
@@ -219,7 +219,7 @@ clear_current_source_symtab_and_line (void) | ||
219 | 219 | before we need to would make things slower than necessary. */ |
220 | 220 | |
221 | 221 | void |
222 | -select_source_symtab (register struct symtab *s) | |
222 | +select_source_symtab (struct symtab *s) | |
223 | 223 | { |
224 | 224 | struct symtabs_and_lines sals; |
225 | 225 | struct symtab_and_line sal; |
@@ -418,7 +418,7 @@ add_path (char *dirname, char **which_path, int parse_separators) | ||
418 | 418 | do |
419 | 419 | { |
420 | 420 | char *name = dirname; |
421 | - register char *p; | |
421 | + char *p; | |
422 | 422 | struct stat st; |
423 | 423 | |
424 | 424 | { |
@@ -526,7 +526,7 @@ add_path (char *dirname, char **which_path, int parse_separators) | ||
526 | 526 | |
527 | 527 | append: |
528 | 528 | { |
529 | - register unsigned int len = strlen (name); | |
529 | + unsigned int len = strlen (name); | |
530 | 530 | |
531 | 531 | p = *which_path; |
532 | 532 | while (1) |
@@ -1019,7 +1019,7 @@ source_line_charpos (struct symtab *s, int line) | ||
1019 | 1019 | /* Return the line number of character position POS in symtab S. */ |
1020 | 1020 | |
1021 | 1021 | int |
1022 | -source_charpos_line (register struct symtab *s, register int chr) | |
1022 | +source_charpos_line (struct symtab *s, int chr) | |
1023 | 1023 | { |
1024 | 1024 | int line = 0; |
1025 | 1025 | int *lnp; |
@@ -1390,7 +1390,7 @@ forward_search_command (char *regex, int from_tty) | ||
1390 | 1390 | while (1) |
1391 | 1391 | { |
1392 | 1392 | static char *buf = NULL; |
1393 | - register char *p; | |
1393 | + char *p; | |
1394 | 1394 | int cursize, newsize; |
1395 | 1395 | |
1396 | 1396 | cursize = 256; |
@@ -1487,7 +1487,7 @@ reverse_search_command (char *regex, int from_tty) | ||
1487 | 1487 | { |
1488 | 1488 | /* FIXME!!! We walk right off the end of buf if we get a long line!!! */ |
1489 | 1489 | char buf[4096]; /* Should be reasonable??? */ |
1490 | - register char *p = buf; | |
1490 | + char *p = buf; | |
1491 | 1491 | |
1492 | 1492 | c = getc (stream); |
1493 | 1493 | if (c == EOF) |
@@ -468,7 +468,7 @@ patch_block_stabs (struct pending *symbols, struct pending_stabs *stabs, | ||
468 | 468 | Returns 0 for success, -1 for error. */ |
469 | 469 | |
470 | 470 | static int |
471 | -read_type_number (register char **pp, register int *typenums) | |
471 | +read_type_number (char **pp, int *typenums) | |
472 | 472 | { |
473 | 473 | int nbits; |
474 | 474 | if (**pp == '(') |
@@ -1941,7 +1941,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type, | ||
1941 | 1941 | if (synonym) |
1942 | 1942 | { |
1943 | 1943 | /* Clone the sym and then modify it. */ |
1944 | - register struct symbol *typedef_sym = (struct symbol *) | |
1944 | + struct symbol *typedef_sym = (struct symbol *) | |
1945 | 1945 | obstack_alloc (&objfile->symbol_obstack, sizeof (struct symbol)); |
1946 | 1946 | *typedef_sym = *sym; |
1947 | 1947 | SYMBOL_CLASS (typedef_sym) = LOC_TYPEDEF; |
@@ -2264,7 +2264,7 @@ error_type (char **pp, struct objfile *objfile) | ||
2264 | 2264 | deciding whether to call read_type. */ |
2265 | 2265 | |
2266 | 2266 | static struct type * |
2267 | -read_type (register char **pp, struct objfile *objfile) | |
2267 | +read_type (char **pp, struct objfile *objfile) | |
2268 | 2268 | { |
2269 | 2269 | struct type *type = 0; |
2270 | 2270 | struct type *type1; |
@@ -4027,7 +4027,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type, | ||
4027 | 4027 | } |
4028 | 4028 | |
4029 | 4029 | static int |
4030 | -attach_fn_fields_to_type (struct field_info *fip, register struct type *type) | |
4030 | +attach_fn_fields_to_type (struct field_info *fip, struct type *type) | |
4031 | 4031 | { |
4032 | 4032 | int n; |
4033 | 4033 |
@@ -4178,7 +4178,7 @@ attach_fn_fields_to_type (struct field_info *fip, register struct type *type) | ||
4178 | 4178 | for this class's virtual functions. */ |
4179 | 4179 | |
4180 | 4180 | static int |
4181 | -attach_fields_to_type (struct field_info *fip, register struct type *type, | |
4181 | +attach_fields_to_type (struct field_info *fip, struct type *type, | |
4182 | 4182 | struct objfile *objfile) |
4183 | 4183 | { |
4184 | 4184 | int nfields = 0; |
@@ -4382,7 +4382,7 @@ read_struct_type (char **pp, struct type *type, enum type_code type_code, | ||
4382 | 4382 | array. */ |
4383 | 4383 | |
4384 | 4384 | static struct type * |
4385 | -read_array_type (register char **pp, register struct type *type, | |
4385 | +read_array_type (char **pp, struct type *type, | |
4386 | 4386 | struct objfile *objfile) |
4387 | 4387 | { |
4388 | 4388 | struct type *index_type, *element_type, *range_type; |
@@ -4445,7 +4445,7 @@ read_array_type (register char **pp, register struct type *type, | ||
4445 | 4445 | Also defines the symbols that represent the values of the type. */ |
4446 | 4446 | |
4447 | 4447 | static struct type * |
4448 | -read_enum_type (register char **pp, register struct type *type, | |
4448 | +read_enum_type (char **pp, struct type *type, | |
4449 | 4449 | struct objfile *objfile) |
4450 | 4450 | { |
4451 | 4451 | char *p; |
@@ -5119,7 +5119,7 @@ fix_common_block (struct symbol *sym, int valu) | ||
5119 | 5119 | struct pending *next = (struct pending *) SYMBOL_TYPE (sym); |
5120 | 5120 | for (; next; next = next->next) |
5121 | 5121 | { |
5122 | - register int j; | |
5122 | + int j; | |
5123 | 5123 | for (j = next->nsyms - 1; j >= 0; j--) |
5124 | 5124 | SYMBOL_VALUE_ADDRESS (next->symbol[j]) += valu; |
5125 | 5125 | } |
@@ -899,7 +899,7 @@ frame_info (char *addr_exp, int from_tty) | ||
899 | 899 | } |
900 | 900 | else |
901 | 901 | { |
902 | - register struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (get_frame_pc (fi)); | |
902 | + struct minimal_symbol *msymbol = lookup_minimal_symbol_by_pc (get_frame_pc (fi)); | |
903 | 903 | if (msymbol != NULL) |
904 | 904 | { |
905 | 905 | funname = DEPRECATED_SYMBOL_NAME (msymbol); |
@@ -1347,7 +1347,7 @@ print_block_frame_locals (struct block *b, struct frame_info *fi, | ||
1347 | 1347 | |
1348 | 1348 | static int |
1349 | 1349 | print_block_frame_labels (struct block *b, int *have_default, |
1350 | - register struct ui_file *stream) | |
1350 | + struct ui_file *stream) | |
1351 | 1351 | { |
1352 | 1352 | struct dict_iterator iter; |
1353 | 1353 | struct symbol *sym; |
@@ -1388,8 +1388,8 @@ print_block_frame_labels (struct block *b, int *have_default, | ||
1388 | 1388 | on the function running in FRAME. */ |
1389 | 1389 | |
1390 | 1390 | static void |
1391 | -print_frame_local_vars (register struct frame_info *fi, register int num_tabs, | |
1392 | - register struct ui_file *stream) | |
1391 | +print_frame_local_vars (struct frame_info *fi, int num_tabs, | |
1392 | + struct ui_file *stream) | |
1393 | 1393 | { |
1394 | 1394 | struct block *block = get_frame_block (fi, 0); |
1395 | 1395 | int values_printed = 0; |
@@ -1421,8 +1421,8 @@ print_frame_local_vars (register struct frame_info *fi, register int num_tabs, | ||
1421 | 1421 | /* Same, but print labels. */ |
1422 | 1422 | |
1423 | 1423 | static void |
1424 | -print_frame_label_vars (register struct frame_info *fi, int this_level_only, | |
1425 | - register struct ui_file *stream) | |
1424 | +print_frame_label_vars (struct frame_info *fi, int this_level_only, | |
1425 | + struct ui_file *stream) | |
1426 | 1426 | { |
1427 | 1427 | struct blockvector *bl; |
1428 | 1428 | struct block *block = get_frame_block (fi, 0); |
@@ -1526,8 +1526,8 @@ catch_info (char *ignore, int from_tty) | ||
1526 | 1526 | } |
1527 | 1527 | |
1528 | 1528 | static void |
1529 | -print_frame_arg_vars (register struct frame_info *fi, | |
1530 | - register struct ui_file *stream) | |
1529 | +print_frame_arg_vars (struct frame_info *fi, | |
1530 | + struct ui_file *stream) | |
1531 | 1531 | { |
1532 | 1532 | struct symbol *func = get_frame_function (fi); |
1533 | 1533 | struct block *b; |
@@ -1657,8 +1657,8 @@ get_selected_block (CORE_ADDR *addr_in_block) | ||
1657 | 1657 | how much farther the original request asked to go. */ |
1658 | 1658 | |
1659 | 1659 | struct frame_info * |
1660 | -find_relative_frame (register struct frame_info *frame, | |
1661 | - register int *level_offset_ptr) | |
1660 | +find_relative_frame (struct frame_info *frame, | |
1661 | + int *level_offset_ptr) | |
1662 | 1662 | { |
1663 | 1663 | struct frame_info *prev; |
1664 | 1664 | struct frame_info *frame1; |
@@ -283,7 +283,7 @@ fprintf (int ign, int a1, int a2, int a3, int a4, int a5, int a6, int a7, | ||
283 | 283 | display_string (buffer); |
284 | 284 | } |
285 | 285 | |
286 | -fwrite (register char *buf, int numelts, int size, int stream) | |
286 | +fwrite (char *buf, int numelts, int size, int stream) | |
287 | 287 | { |
288 | 288 | int i = numelts * size; |
289 | 289 | while (i-- > 0) |
@@ -249,8 +249,8 @@ obsavestring (const char *ptr, int size, struct obstack *obstackp) | ||
249 | 249 | short. FIXME: Is this really still true with a compiler that can |
250 | 250 | inline memcpy? */ |
251 | 251 | { |
252 | - register const char *p1 = ptr; | |
253 | - register char *p2 = p; | |
252 | + const char *p1 = ptr; | |
253 | + char *p2 = p; | |
254 | 254 | const char *end = ptr + size; |
255 | 255 | while (p1 != end) |
256 | 256 | *p2++ = *p1++; |
@@ -290,7 +290,7 @@ decrement_reading_symtab (void *dummy) | ||
290 | 290 | case inline. */ |
291 | 291 | |
292 | 292 | struct symtab * |
293 | -psymtab_to_symtab (register struct partial_symtab *pst) | |
293 | +psymtab_to_symtab (struct partial_symtab *pst) | |
294 | 294 | { |
295 | 295 | /* If it's been looked up before, return it. */ |
296 | 296 | if (pst->symtab) |
@@ -116,7 +116,7 @@ free_symtab_block (struct objfile *objfile, struct block *b) | ||
116 | 116 | It is s->free_code that says which alternative to use. */ |
117 | 117 | |
118 | 118 | void |
119 | -free_symtab (register struct symtab *s) | |
119 | +free_symtab (struct symtab *s) | |
120 | 120 | { |
121 | 121 | int i, n; |
122 | 122 | struct blockvector *bv; |
@@ -1228,7 +1228,7 @@ block_depth (struct block *block) | ||
1228 | 1228 | be freed in free_objfile(). */ |
1229 | 1229 | |
1230 | 1230 | void |
1231 | -extend_psymbol_list (register struct psymbol_allocation_list *listp, | |
1231 | +extend_psymbol_list (struct psymbol_allocation_list *listp, | |
1232 | 1232 | struct objfile *objfile) |
1233 | 1233 | { |
1234 | 1234 | int new_size; |
@@ -1630,7 +1630,7 @@ find_main_psymtab (void) | ||
1630 | 1630 | */ |
1631 | 1631 | |
1632 | 1632 | struct symbol * |
1633 | -lookup_block_symbol (register const struct block *block, const char *name, | |
1633 | +lookup_block_symbol (const struct block *block, const char *name, | |
1634 | 1634 | const char *linkage_name, |
1635 | 1635 | const domain_enum domain) |
1636 | 1636 | { |
@@ -2288,7 +2288,7 @@ find_line_pc_range (struct symtab_and_line sal, CORE_ADDR *startptr, | ||
2288 | 2288 | Set *EXACT_MATCH nonzero if the value returned is an exact match. */ |
2289 | 2289 | |
2290 | 2290 | static int |
2291 | -find_line_common (register struct linetable *l, register int lineno, | |
2291 | +find_line_common (struct linetable *l, int lineno, | |
2292 | 2292 | int *exact_match) |
2293 | 2293 | { |
2294 | 2294 | int i; |
@@ -2309,7 +2309,7 @@ find_line_common (register struct linetable *l, register int lineno, | ||
2309 | 2309 | len = l->nitems; |
2310 | 2310 | for (i = 0; i < len; i++) |
2311 | 2311 | { |
2312 | - register struct linetable_entry *item = &(l->item[i]); | |
2312 | + struct linetable_entry *item = &(l->item[i]); | |
2313 | 2313 | |
2314 | 2314 | if (item->line == lineno) |
2315 | 2315 | { |
@@ -2417,7 +2417,7 @@ operator_chars (char *p, char **end) | ||
2417 | 2417 | |
2418 | 2418 | if (isalpha (*p) || *p == '_' || *p == '$') |
2419 | 2419 | { |
2420 | - register char *q = p + 1; | |
2420 | + char *q = p + 1; | |
2421 | 2421 | while (isalnum (*q) || *q == '_' || *q == '$') |
2422 | 2422 | q++; |
2423 | 2423 | *end = q; |
@@ -282,38 +282,38 @@ make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function, | ||
282 | 282 | until we get back to the point OLD_CHAIN in the cleanup_chain. */ |
283 | 283 | |
284 | 284 | void |
285 | -do_cleanups (register struct cleanup *old_chain) | |
285 | +do_cleanups (struct cleanup *old_chain) | |
286 | 286 | { |
287 | 287 | do_my_cleanups (&cleanup_chain, old_chain); |
288 | 288 | } |
289 | 289 | |
290 | 290 | void |
291 | -do_final_cleanups (register struct cleanup *old_chain) | |
291 | +do_final_cleanups (struct cleanup *old_chain) | |
292 | 292 | { |
293 | 293 | do_my_cleanups (&final_cleanup_chain, old_chain); |
294 | 294 | } |
295 | 295 | |
296 | 296 | void |
297 | -do_run_cleanups (register struct cleanup *old_chain) | |
297 | +do_run_cleanups (struct cleanup *old_chain) | |
298 | 298 | { |
299 | 299 | do_my_cleanups (&run_cleanup_chain, old_chain); |
300 | 300 | } |
301 | 301 | |
302 | 302 | void |
303 | -do_exec_cleanups (register struct cleanup *old_chain) | |
303 | +do_exec_cleanups (struct cleanup *old_chain) | |
304 | 304 | { |
305 | 305 | do_my_cleanups (&exec_cleanup_chain, old_chain); |
306 | 306 | } |
307 | 307 | |
308 | 308 | void |
309 | -do_exec_error_cleanups (register struct cleanup *old_chain) | |
309 | +do_exec_error_cleanups (struct cleanup *old_chain) | |
310 | 310 | { |
311 | 311 | do_my_cleanups (&exec_error_cleanup_chain, old_chain); |
312 | 312 | } |
313 | 313 | |
314 | 314 | void |
315 | -do_my_cleanups (register struct cleanup **pmy_chain, | |
316 | - register struct cleanup *old_chain) | |
315 | +do_my_cleanups (struct cleanup **pmy_chain, | |
316 | + struct cleanup *old_chain) | |
317 | 317 | { |
318 | 318 | struct cleanup *ptr; |
319 | 319 | while ((ptr = *pmy_chain) != old_chain) |
@@ -328,26 +328,26 @@ do_my_cleanups (register struct cleanup **pmy_chain, | ||
328 | 328 | until we get back to the point OLD_CHAIN in the cleanup_chain. */ |
329 | 329 | |
330 | 330 | void |
331 | -discard_cleanups (register struct cleanup *old_chain) | |
331 | +discard_cleanups (struct cleanup *old_chain) | |
332 | 332 | { |
333 | 333 | discard_my_cleanups (&cleanup_chain, old_chain); |
334 | 334 | } |
335 | 335 | |
336 | 336 | void |
337 | -discard_final_cleanups (register struct cleanup *old_chain) | |
337 | +discard_final_cleanups (struct cleanup *old_chain) | |
338 | 338 | { |
339 | 339 | discard_my_cleanups (&final_cleanup_chain, old_chain); |
340 | 340 | } |
341 | 341 | |
342 | 342 | void |
343 | -discard_exec_error_cleanups (register struct cleanup *old_chain) | |
343 | +discard_exec_error_cleanups (struct cleanup *old_chain) | |
344 | 344 | { |
345 | 345 | discard_my_cleanups (&exec_error_cleanup_chain, old_chain); |
346 | 346 | } |
347 | 347 | |
348 | 348 | void |
349 | -discard_my_cleanups (register struct cleanup **pmy_chain, | |
350 | - register struct cleanup *old_chain) | |
349 | +discard_my_cleanups (struct cleanup **pmy_chain, | |
350 | + struct cleanup *old_chain) | |
351 | 351 | { |
352 | 352 | struct cleanup *ptr; |
353 | 353 | while ((ptr = *pmy_chain) != old_chain) |
@@ -1265,7 +1265,7 @@ mstrsave (void *md, const char *ptr) | ||
1265 | 1265 | } |
1266 | 1266 | |
1267 | 1267 | void |
1268 | -print_spaces (register int n, register struct ui_file *file) | |
1268 | +print_spaces (int n, struct ui_file *file) | |
1269 | 1269 | { |
1270 | 1270 | fputs_unfiltered (n_spaces (n), file); |
1271 | 1271 | } |
@@ -1456,8 +1456,8 @@ parse_escape (char **string_ptr) | ||
1456 | 1456 | case '6': |
1457 | 1457 | case '7': |
1458 | 1458 | { |
1459 | - register int i = c - '0'; | |
1460 | - register int count = 0; | |
1459 | + int i = c - '0'; | |
1460 | + int count = 0; | |
1461 | 1461 | while (++count < 3) |
1462 | 1462 | { |
1463 | 1463 | c = (**string_ptr); |
@@ -969,7 +969,7 @@ push_bytes (CORE_ADDR sp, char *buffer, int len) | ||
969 | 969 | it to be an argument to a function. */ |
970 | 970 | |
971 | 971 | static CORE_ADDR |
972 | -value_push (register CORE_ADDR sp, struct value *arg) | |
972 | +value_push (CORE_ADDR sp, struct value *arg) | |
973 | 973 | { |
974 | 974 | int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg)); |
975 | 975 | int container_len = len; |
@@ -1232,7 +1232,7 @@ typecmp (int staticp, int varargs, int nargs, | ||
1232 | 1232 | |
1233 | 1233 | static struct value * |
1234 | 1234 | search_struct_field (char *name, struct value *arg1, int offset, |
1235 | - register struct type *type, int looking_for_baseclass) | |
1235 | + struct type *type, int looking_for_baseclass) | |
1236 | 1236 | { |
1237 | 1237 | int i; |
1238 | 1238 | int nbases = TYPE_N_BASECLASSES (type); |
@@ -1472,7 +1472,7 @@ find_rt_vbase_offset (struct type *type, struct type *basetype, char *valaddr, | ||
1472 | 1472 | static struct value * |
1473 | 1473 | search_struct_method (char *name, struct value **arg1p, |
1474 | 1474 | struct value **args, int offset, |
1475 | - int *static_memfuncp, register struct type *type) | |
1475 | + int *static_memfuncp, struct type *type) | |
1476 | 1476 | { |
1477 | 1477 | int i; |
1478 | 1478 | struct value *v; |
@@ -2138,7 +2138,7 @@ destructor_name_p (const char *name, const struct type *type) | ||
2138 | 2138 | target structure/union is defined, otherwise, return 0. */ |
2139 | 2139 | |
2140 | 2140 | static int |
2141 | -check_field_in (register struct type *type, const char *name) | |
2141 | +check_field_in (struct type *type, const char *name) | |
2142 | 2142 | { |
2143 | 2143 | int i; |
2144 | 2144 |
@@ -883,7 +883,7 @@ value_change_enclosing_type (struct value *val, struct type *new_encl_type) | ||
883 | 883 | |
884 | 884 | struct value * |
885 | 885 | value_primitive_field (struct value *arg1, int offset, |
886 | - register int fieldno, register struct type *arg_type) | |
886 | + int fieldno, struct type *arg_type) | |
887 | 887 | { |
888 | 888 | struct value *v; |
889 | 889 | struct type *type; |
@@ -952,7 +952,7 @@ value_primitive_field (struct value *arg1, int offset, | ||
952 | 952 | FIELDNO says which field. */ |
953 | 953 | |
954 | 954 | struct value * |
955 | -value_field (struct value *arg1, register int fieldno) | |
955 | +value_field (struct value *arg1, int fieldno) | |
956 | 956 | { |
957 | 957 | return value_primitive_field (arg1, 0, fieldno, VALUE_TYPE (arg1)); |
958 | 958 | } |
@@ -1114,7 +1114,7 @@ modify_field (char *addr, LONGEST fieldval, int bitpos, int bitsize) | ||
1114 | 1114 | /* Convert C numbers into newly allocated values */ |
1115 | 1115 | |
1116 | 1116 | struct value * |
1117 | -value_from_longest (struct type *type, register LONGEST num) | |
1117 | +value_from_longest (struct type *type, LONGEST num) | |
1118 | 1118 | { |
1119 | 1119 | struct value *val = allocate_value (type); |
1120 | 1120 | enum type_code code; |
@@ -1438,7 +1438,7 @@ static struct type *var_symbol_type; | ||
1438 | 1438 | /* process one xcoff symbol. */ |
1439 | 1439 | |
1440 | 1440 | static struct symbol * |
1441 | -process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile) | |
1441 | +process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile) | |
1442 | 1442 | { |
1443 | 1443 | struct symbol onesymbol; |
1444 | 1444 | struct symbol *sym = &onesymbol; |
@@ -2535,7 +2535,7 @@ scan_xcoff_symtab (struct objfile *objfile) | ||
2535 | 2535 | if (pst && STREQ (namestring, pst->filename)) |
2536 | 2536 | continue; |
2537 | 2537 | { |
2538 | - register int i; | |
2538 | + int i; | |
2539 | 2539 | for (i = 0; i < includes_used; i++) |
2540 | 2540 | if (STREQ (namestring, psymtab_include_list[i])) |
2541 | 2541 | { |