• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révisionaa1ee363bce1eac43bf9824069e231d7113f7453 (tree)
l'heure2003-09-17 03:56:35
AuteurAndrew Cagney <cagney@redh...>
CommiterAndrew Cagney

Message de Log

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.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
113 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
214
315 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -709,7 +709,7 @@ pop_subfile (void)
709709 line vector for SUBFILE. */
710710
711711 void
712-record_line (register struct subfile *subfile, int line, CORE_ADDR pc)
712+record_line (struct subfile *subfile, int line, CORE_ADDR pc)
713713 {
714714 struct linetable_entry *e;
715715 /* Ignore the dummy line number in libg.o */
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -313,7 +313,7 @@ cs_section_address (struct coff_symbol *cs, bfd *abfd)
313313 or for associating a new type with the index. */
314314
315315 static struct type **
316-coff_lookup_type (register int index)
316+coff_lookup_type (int index)
317317 {
318318 if (index >= type_vector_length)
319319 {
@@ -1119,9 +1119,9 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
11191119 in internal_auxent form, and skip any other auxents. */
11201120
11211121 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)
11251125 {
11261126 int i;
11271127
@@ -1348,8 +1348,8 @@ free_linetab_cleanup (void *ignore)
13481348 #endif
13491349
13501350 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)
13531353 {
13541354 char *rawptr;
13551355 struct internal_lineno lptr;
@@ -1431,9 +1431,9 @@ patch_opaque_types (struct symtab *s)
14311431 TYPE_CODE (SYMBOL_TYPE (real_sym)) == TYPE_CODE_PTR &&
14321432 TYPE_LENGTH (TYPE_TARGET_TYPE (SYMBOL_TYPE (real_sym))) != 0)
14331433 {
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;
14371437
14381438 prev = 0;
14391439 for (sym = opaque_type_chain[hash]; sym;)
@@ -1472,8 +1472,8 @@ patch_opaque_types (struct symtab *s)
14721472 }
14731473
14741474 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,
14771477 struct objfile *objfile)
14781478 {
14791479 struct symbol *sym
@@ -1659,7 +1659,7 @@ process_coff_symbol (register struct coff_symbol *cs,
16591659 TYPE_CODE (TYPE_TARGET_TYPE (SYMBOL_TYPE (sym))) !=
16601660 TYPE_CODE_UNDEF)
16611661 {
1662- register int i = hashname (DEPRECATED_SYMBOL_NAME (sym));
1662+ int i = hashname (DEPRECATED_SYMBOL_NAME (sym));
16631663
16641664 SYMBOL_VALUE_CHAIN (sym) = opaque_type_chain[i];
16651665 opaque_type_chain[i] = sym;
@@ -1696,8 +1696,8 @@ process_coff_symbol (register struct coff_symbol *cs,
16961696 /* Decode a coff type specifier; return the type that is meant. */
16971697
16981698 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)
17011701 {
17021702 struct type *type = 0;
17031703 unsigned int new_c_type;
@@ -1718,7 +1718,7 @@ decode_type (register struct coff_symbol *cs, unsigned int c_type,
17181718 else if (ISARY (c_type))
17191719 {
17201720 int i, n;
1721- register unsigned short *dim;
1721+ unsigned short *dim;
17221722 struct type *base_type, *index_type, *range_type;
17231723
17241724 /* Define an array type. */
@@ -1777,8 +1777,8 @@ decode_type (register struct coff_symbol *cs, unsigned int c_type,
17771777 return the type that the function returns. */
17781778
17791779 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)
17821782 {
17831783 if (aux->x_sym.x_tagndx.l == 0)
17841784 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,
17891789 /* basic C types */
17901790
17911791 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)
17941794 {
17951795 struct type *type;
17961796
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -752,8 +752,8 @@ dbx_symfile_finish (struct objfile *objfile)
752752 {
753753 if (HEADER_FILES (objfile) != NULL)
754754 {
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);
757757
758758 while (--i >= 0)
759759 {
@@ -1715,7 +1715,7 @@ read_dbx_symtab (struct objfile *objfile)
17151715 if (pst && STREQ (namestring, pst->filename))
17161716 continue;
17171717 {
1718- register int i;
1718+ int i;
17191719 for (i = 0; i < includes_used; i++)
17201720 if (STREQ (namestring, psymtab_include_list[i]))
17211721 {
--- a/gdb/dcache.c
+++ b/gdb/dcache.c
@@ -240,7 +240,7 @@ dcache_hit (DCACHE *dcache, CORE_ADDR addr)
240240 be written is. */
241241
242242 static int
243-dcache_write_line (DCACHE *dcache, register struct dcache_block *db)
243+dcache_write_line (DCACHE *dcache, struct dcache_block *db)
244244 {
245245 CORE_ADDR memaddr;
246246 char *myaddr;
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -5912,7 +5912,7 @@ dwarf2_extension (struct die_info *die)
59125912 /* Convert a DIE tag into its string name. */
59135913
59145914 static char *
5915-dwarf_tag_name (register unsigned tag)
5915+dwarf_tag_name (unsigned tag)
59165916 {
59175917 switch (tag)
59185918 {
@@ -6044,7 +6044,7 @@ dwarf_tag_name (register unsigned tag)
60446044 /* Convert a DWARF attribute code into its string name. */
60456045
60466046 static char *
6047-dwarf_attr_name (register unsigned attr)
6047+dwarf_attr_name (unsigned attr)
60486048 {
60496049 switch (attr)
60506050 {
@@ -6235,7 +6235,7 @@ dwarf_attr_name (register unsigned attr)
62356235 /* Convert a DWARF value form code into its string name. */
62366236
62376237 static char *
6238-dwarf_form_name (register unsigned form)
6238+dwarf_form_name (unsigned form)
62396239 {
62406240 switch (form)
62416241 {
@@ -6289,7 +6289,7 @@ dwarf_form_name (register unsigned form)
62896289 /* Convert a DWARF stack opcode into its string name. */
62906290
62916291 static char *
6292-dwarf_stack_op_name (register unsigned op)
6292+dwarf_stack_op_name (unsigned op)
62936293 {
62946294 switch (op)
62956295 {
@@ -6612,7 +6612,7 @@ dwarf_bool_name (unsigned mybool)
66126612 /* Convert a DWARF type code into its string name. */
66136613
66146614 static char *
6615-dwarf_type_encoding_name (register unsigned enc)
6615+dwarf_type_encoding_name (unsigned enc)
66166616 {
66176617 switch (enc)
66186618 {
@@ -6643,7 +6643,7 @@ dwarf_type_encoding_name (register unsigned enc)
66436643
66446644 #if 0
66456645 static char *
6646-dwarf_cfi_name (register unsigned cfi_opc)
6646+dwarf_cfi_name (unsigned cfi_opc)
66476647 {
66486648 switch (cfi_opc)
66496649 {
--- a/gdb/environ.c
+++ b/gdb/environ.c
@@ -44,7 +44,7 @@ make_environ (void)
4444 /* Free an environment and all the strings in it. */
4545
4646 void
47-free_environ (register struct environ *e)
47+free_environ (struct environ *e)
4848 {
4949 char **vector = e->vector;
5050
@@ -59,7 +59,7 @@ free_environ (register struct environ *e)
5959 that all strings in these environments are safe to free. */
6060
6161 void
62-init_environ (register struct environ *e)
62+init_environ (struct environ *e)
6363 {
6464 extern char **environ;
6565 int i;
@@ -80,8 +80,8 @@ init_environ (register struct environ *e)
8080
8181 while (--i >= 0)
8282 {
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);
8585 memcpy (new, e->vector[i], len + 1);
8686 e->vector[i] = new;
8787 }
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -67,8 +67,8 @@ static LONGEST init_array_element (struct value *, struct value *,
6767 LONGEST, LONGEST);
6868
6969 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)
7272 {
7373 return (*exp->language_defn->evaluate_exp) (expect_type, exp, pos, noside);
7474 }
@@ -176,7 +176,7 @@ evaluate_type (struct expression *exp)
176176 returning the label. Otherwise, does nothing and returns NULL. */
177177
178178 static char *
179-get_label (register struct expression *exp, int *pos)
179+get_label (struct expression *exp, int *pos)
180180 {
181181 if (exp->elts[*pos].opcode == OP_LABELED)
182182 {
@@ -195,8 +195,8 @@ get_label (register struct expression *exp, int *pos)
195195
196196 static struct value *
197197 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)
200200 {
201201 struct type *struct_type = check_typedef (VALUE_TYPE (struct_val));
202202 struct type *substruct_type = struct_type;
@@ -338,7 +338,7 @@ evaluate_struct_tuple (struct value *struct_val,
338338
339339 static LONGEST
340340 init_array_element (struct value *array, struct value *element,
341- register struct expression *exp, register int *pos,
341+ struct expression *exp, int *pos,
342342 enum noside noside, LONGEST low_bound, LONGEST high_bound)
343343 {
344344 LONGEST index;
@@ -379,7 +379,7 @@ init_array_element (struct value *array, struct value *element,
379379
380380 struct value *
381381 evaluate_subexp_standard (struct type *expect_type,
382- register struct expression *exp, register int *pos,
382+ struct expression *exp, int *pos,
383383 enum noside noside)
384384 {
385385 enum exp_opcode op;
@@ -2063,7 +2063,7 @@ nosideret:
20632063 then only the type of the result need be correct. */
20642064
20652065 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,
20672067 enum noside noside)
20682068 {
20692069 enum exp_opcode op;
@@ -2143,8 +2143,8 @@ evaluate_subexp_for_address (register struct expression *exp, register int *pos,
21432143 */
21442144
21452145 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)
21482148 {
21492149 enum exp_opcode op;
21502150 int pc;
@@ -2180,7 +2180,7 @@ evaluate_subexp_with_coercion (register struct expression *exp,
21802180 Advance *POS over the subexpression. */
21812181
21822182 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)
21842184 {
21852185 enum exp_opcode op;
21862186 int pc;
--- a/gdb/f-valprint.c
+++ b/gdb/f-valprint.c
@@ -631,7 +631,7 @@ info_common_command (char *comname, int from_tty)
631631 }
632632 else
633633 {
634- register struct minimal_symbol *msymbol =
634+ struct minimal_symbol *msymbol =
635635 lookup_minimal_symbol_by_pc (get_frame_pc (fi));
636636
637637 if (msymbol != NULL)
@@ -723,7 +723,7 @@ there_is_a_visible_common_named (char *comname)
723723 }
724724 else
725725 {
726- register struct minimal_symbol *msymbol =
726+ struct minimal_symbol *msymbol =
727727 lookup_minimal_symbol_by_pc (fi->pc);
728728
729729 if (msymbol != NULL)
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -391,7 +391,7 @@ symbol_read_needs_frame (struct symbol *sym)
391391 If FRAME is NULL, use the deprecated_selected_frame. */
392392
393393 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)
395395 {
396396 struct value *v;
397397 struct type *type = SYMBOL_TYPE (var);
@@ -730,7 +730,7 @@ value_from_register (struct type *type, int regnum, struct frame_info *frame)
730730 address. */
731731
732732 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)
734734 {
735735 CORE_ADDR addr = 0;
736736 struct type *type = SYMBOL_TYPE (var);
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -1020,7 +1020,7 @@ smash_to_method_type (struct type *type, struct type *domain,
10201020 "union ", or "enum ". If the type has a NULL name, return NULL. */
10211021
10221022 char *
1023-type_name_no_tag (register const struct type *type)
1023+type_name_no_tag (const struct type *type)
10241024 {
10251025 if (TYPE_TAG_NAME (type) != NULL)
10261026 return TYPE_TAG_NAME (type);
--- a/gdb/gnu-v2-abi.c
+++ b/gdb/gnu-v2-abi.c
@@ -354,8 +354,8 @@ gnuv2_baseclass_offset (struct type *type, int index, char *valaddr,
354354 if (BASETYPE_VIA_VIRTUAL (type, index))
355355 {
356356 /* 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);
359359
360360 /* First look for the virtual baseclass pointer
361361 in the fields. */
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -321,7 +321,7 @@ h8300_next_prologue_insn (CORE_ADDR addr,
321321 */
322322
323323 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,
325325 CORE_ADDR after_prolog_fp, CORE_ADDR *fsr,
326326 struct frame_info *fi)
327327 {
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -2068,7 +2068,7 @@ hppa_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
20682068 gets the value from the stack rather than from the buffer where all the
20692069 registers were saved when the function called completed. */
20702070 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)
20722072 {
20732073 struct value *val;
20742074
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1337,7 +1337,7 @@ environment_info (char *var, int from_tty)
13371337 {
13381338 if (var)
13391339 {
1340- register char *val = get_in_environ (inferior_environ, var);
1340+ char *val = get_in_environ (inferior_environ, var);
13411341 if (val)
13421342 {
13431343 puts_filtered (var);
@@ -1354,7 +1354,7 @@ environment_info (char *var, int from_tty)
13541354 }
13551355 else
13561356 {
1357- register char **vector = environ_vector (inferior_environ);
1357+ char **vector = environ_vector (inferior_environ);
13581358 while (*vector)
13591359 {
13601360 puts_filtered (*vector++);
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -508,7 +508,7 @@ push_parse_stack (void)
508508 /* Initialize new frame with previous content */
509509 if (top_stack)
510510 {
511- register struct parse_stack *prev = new->prev;
511+ struct parse_stack *prev = new->prev;
512512
513513 *new = *top_stack;
514514 top_stack->prev = new;
@@ -2936,7 +2936,7 @@ parse_partial_symbols (struct objfile *objfile)
29362936 if (pst && STREQ (namestring, pst->filename))
29372937 continue;
29382938 {
2939- register int i;
2939+ int i;
29402940 for (i = 0; i < includes_used; i++)
29412941 if (STREQ (namestring, psymtab_include_list[i]))
29422942 {
@@ -4438,7 +4438,7 @@ cross_ref (int fd, union aux_ext *ax, struct type **tpp, enum type_code type_cod
44384438 keeping the symtab sorted */
44394439
44404440 static struct symbol *
4441-mylookup_symbol (char *name, register struct block *block,
4441+mylookup_symbol (char *name, struct block *block,
44424442 domain_enum domain, enum address_class class)
44434443 {
44444444 struct dict_iterator iter;
@@ -4568,8 +4568,8 @@ sort_blocks (struct symtab *s)
45684568 compare_blocks);
45694569
45704570 {
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);
45734573
45744574 for (i = FIRST_LOCAL_BLOCK; i < j; i++)
45754575 if (high < BLOCK_END (BLOCKVECTOR_BLOCK (bv, i)))
--- a/gdb/minsyms.c
+++ b/gdb/minsyms.c
@@ -148,7 +148,7 @@ add_minsym_to_demangled_hash_table (struct minimal_symbol *sym,
148148 names (the dynamic linker deals with the duplication). */
149149
150150 struct minimal_symbol *
151-lookup_minimal_symbol (register const char *name, const char *sfile,
151+lookup_minimal_symbol (const char *name, const char *sfile,
152152 struct objfile *objf)
153153 {
154154 struct objfile *objfile;
@@ -268,7 +268,7 @@ lookup_minimal_symbol (register const char *name, const char *sfile,
268268 This function only searches the mangled (linkage) names. */
269269
270270 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,
272272 struct objfile *objf)
273273 {
274274 struct objfile *objfile;
@@ -345,8 +345,9 @@ lookup_minimal_symbol_text (register const char *name, const char *sfile,
345345 This function only searches the mangled (linkage) names. */
346346
347347 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)
350351 {
351352 struct objfile *objfile;
352353 struct minimal_symbol *msymbol;
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -2589,7 +2589,7 @@ find_proc_desc (CORE_ADDR pc, struct frame_info *next_frame, int cur_frame)
25892589 to have their own proc_descs, and even if they don't,
25902590 heuristic_proc_desc knows how to create them! */
25912591
2592- register struct linked_proc_info *link;
2592+ struct linked_proc_info *link;
25932593
25942594 for (link = linked_proc_desc_table; link; link = link->next)
25952595 if (PROC_LOW_ADDR (&link->info) <= pc
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -275,7 +275,7 @@ decode_format (char **string_ptr, int oformat, int osize)
275275 This is used to pad hex numbers so they line up. */
276276
277277 static void
278-print_formatted (struct value *val, register int format, int size,
278+print_formatted (struct value *val, int format, int size,
279279 struct ui_file *stream)
280280 {
281281 struct type *type = check_typedef (VALUE_TYPE (val));
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -255,7 +255,7 @@ vx_create_inferior (char *exec_file, char *args, char **env)
255255 argument string ARGSTRING. */
256256
257257 static void
258-parse_args (register char *arg_string, arg_array *arg_struct)
258+parse_args (char *arg_string, arg_array *arg_struct)
259259 {
260260 int arg_count = 0; /* number of arguments */
261261 int arg_index = 0;
@@ -295,7 +295,7 @@ parse_args (register char *arg_string, arg_array *arg_struct)
295295 to the first non-white character. */
296296
297297 static char *
298-skip_white_space (register char *p)
298+skip_white_space (char *p)
299299 {
300300 while (*p == ' ' || *p == '\t')
301301 p++;
@@ -307,7 +307,7 @@ skip_white_space (register char *p)
307307 if no whitespace is found. */
308308
309309 static char *
310-find_white_space (register char *p)
310+find_white_space (char *p)
311311 {
312312 int c;
313313
@@ -1139,7 +1139,7 @@ vx_open (char *args, int from_tty)
11391139 pLoadFile = &loadTable.tbl_ent[i];
11401140 #ifdef WRS_ORIG
11411141 {
1142- register int desc;
1142+ int desc;
11431143 struct cleanup *old_chain;
11441144 char *fullname = NULL;
11451145
--- a/gdb/sh-stub.c
+++ b/gdb/sh-stub.c
@@ -450,10 +450,10 @@ retry:
450450 /* send the packet in buffer. */
451451
452452 static void
453-putpacket (register char *buffer)
453+putpacket (char *buffer)
454454 {
455- register int checksum;
456- register int count;
455+ int checksum;
456+ int count;
457457
458458 /* $<packet info>#<checksum>. */
459459 do
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -1845,7 +1845,7 @@ sh_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum)
18451845 fprintf_filtered (file, "\t(raw 0x");
18461846 for (j = 0; j < register_size (gdbarch, regnum); j++)
18471847 {
1848- register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
1848+ int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
18491849 : register_size (gdbarch, regnum) - 1 - j;
18501850 fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[idx]);
18511851 }
--- a/gdb/sh64-tdep.c
+++ b/gdb/sh64-tdep.c
@@ -2602,7 +2602,7 @@ sh_do_fp_register (struct gdbarch *gdbarch, struct ui_file *file, int regnum)
26022602 fprintf_filtered (file, "\t(raw 0x");
26032603 for (j = 0; j < register_size (gdbarch, regnum); j++)
26042604 {
2605- register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
2605+ int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
26062606 : register_size (gdbarch, regnum) - 1 - j;
26072607 fprintf_filtered (file, "%02x", (unsigned char) raw_buffer[idx]);
26082608 }
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -219,7 +219,7 @@ clear_current_source_symtab_and_line (void)
219219 before we need to would make things slower than necessary. */
220220
221221 void
222-select_source_symtab (register struct symtab *s)
222+select_source_symtab (struct symtab *s)
223223 {
224224 struct symtabs_and_lines sals;
225225 struct symtab_and_line sal;
@@ -418,7 +418,7 @@ add_path (char *dirname, char **which_path, int parse_separators)
418418 do
419419 {
420420 char *name = dirname;
421- register char *p;
421+ char *p;
422422 struct stat st;
423423
424424 {
@@ -526,7 +526,7 @@ add_path (char *dirname, char **which_path, int parse_separators)
526526
527527 append:
528528 {
529- register unsigned int len = strlen (name);
529+ unsigned int len = strlen (name);
530530
531531 p = *which_path;
532532 while (1)
@@ -1019,7 +1019,7 @@ source_line_charpos (struct symtab *s, int line)
10191019 /* Return the line number of character position POS in symtab S. */
10201020
10211021 int
1022-source_charpos_line (register struct symtab *s, register int chr)
1022+source_charpos_line (struct symtab *s, int chr)
10231023 {
10241024 int line = 0;
10251025 int *lnp;
@@ -1390,7 +1390,7 @@ forward_search_command (char *regex, int from_tty)
13901390 while (1)
13911391 {
13921392 static char *buf = NULL;
1393- register char *p;
1393+ char *p;
13941394 int cursize, newsize;
13951395
13961396 cursize = 256;
@@ -1487,7 +1487,7 @@ reverse_search_command (char *regex, int from_tty)
14871487 {
14881488 /* FIXME!!! We walk right off the end of buf if we get a long line!!! */
14891489 char buf[4096]; /* Should be reasonable??? */
1490- register char *p = buf;
1490+ char *p = buf;
14911491
14921492 c = getc (stream);
14931493 if (c == EOF)
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -468,7 +468,7 @@ patch_block_stabs (struct pending *symbols, struct pending_stabs *stabs,
468468 Returns 0 for success, -1 for error. */
469469
470470 static int
471-read_type_number (register char **pp, register int *typenums)
471+read_type_number (char **pp, int *typenums)
472472 {
473473 int nbits;
474474 if (**pp == '(')
@@ -1941,7 +1941,7 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
19411941 if (synonym)
19421942 {
19431943 /* Clone the sym and then modify it. */
1944- register struct symbol *typedef_sym = (struct symbol *)
1944+ struct symbol *typedef_sym = (struct symbol *)
19451945 obstack_alloc (&objfile->symbol_obstack, sizeof (struct symbol));
19461946 *typedef_sym = *sym;
19471947 SYMBOL_CLASS (typedef_sym) = LOC_TYPEDEF;
@@ -2264,7 +2264,7 @@ error_type (char **pp, struct objfile *objfile)
22642264 deciding whether to call read_type. */
22652265
22662266 static struct type *
2267-read_type (register char **pp, struct objfile *objfile)
2267+read_type (char **pp, struct objfile *objfile)
22682268 {
22692269 struct type *type = 0;
22702270 struct type *type1;
@@ -4027,7 +4027,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type,
40274027 }
40284028
40294029 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)
40314031 {
40324032 int n;
40334033
@@ -4178,7 +4178,7 @@ attach_fn_fields_to_type (struct field_info *fip, register struct type *type)
41784178 for this class's virtual functions. */
41794179
41804180 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,
41824182 struct objfile *objfile)
41834183 {
41844184 int nfields = 0;
@@ -4382,7 +4382,7 @@ read_struct_type (char **pp, struct type *type, enum type_code type_code,
43824382 array. */
43834383
43844384 static struct type *
4385-read_array_type (register char **pp, register struct type *type,
4385+read_array_type (char **pp, struct type *type,
43864386 struct objfile *objfile)
43874387 {
43884388 struct type *index_type, *element_type, *range_type;
@@ -4445,7 +4445,7 @@ read_array_type (register char **pp, register struct type *type,
44454445 Also defines the symbols that represent the values of the type. */
44464446
44474447 static struct type *
4448-read_enum_type (register char **pp, register struct type *type,
4448+read_enum_type (char **pp, struct type *type,
44494449 struct objfile *objfile)
44504450 {
44514451 char *p;
@@ -5119,7 +5119,7 @@ fix_common_block (struct symbol *sym, int valu)
51195119 struct pending *next = (struct pending *) SYMBOL_TYPE (sym);
51205120 for (; next; next = next->next)
51215121 {
5122- register int j;
5122+ int j;
51235123 for (j = next->nsyms - 1; j >= 0; j--)
51245124 SYMBOL_VALUE_ADDRESS (next->symbol[j]) += valu;
51255125 }
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -899,7 +899,7 @@ frame_info (char *addr_exp, int from_tty)
899899 }
900900 else
901901 {
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));
903903 if (msymbol != NULL)
904904 {
905905 funname = DEPRECATED_SYMBOL_NAME (msymbol);
@@ -1347,7 +1347,7 @@ print_block_frame_locals (struct block *b, struct frame_info *fi,
13471347
13481348 static int
13491349 print_block_frame_labels (struct block *b, int *have_default,
1350- register struct ui_file *stream)
1350+ struct ui_file *stream)
13511351 {
13521352 struct dict_iterator iter;
13531353 struct symbol *sym;
@@ -1388,8 +1388,8 @@ print_block_frame_labels (struct block *b, int *have_default,
13881388 on the function running in FRAME. */
13891389
13901390 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)
13931393 {
13941394 struct block *block = get_frame_block (fi, 0);
13951395 int values_printed = 0;
@@ -1421,8 +1421,8 @@ print_frame_local_vars (register struct frame_info *fi, register int num_tabs,
14211421 /* Same, but print labels. */
14221422
14231423 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)
14261426 {
14271427 struct blockvector *bl;
14281428 struct block *block = get_frame_block (fi, 0);
@@ -1526,8 +1526,8 @@ catch_info (char *ignore, int from_tty)
15261526 }
15271527
15281528 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)
15311531 {
15321532 struct symbol *func = get_frame_function (fi);
15331533 struct block *b;
@@ -1657,8 +1657,8 @@ get_selected_block (CORE_ADDR *addr_in_block)
16571657 how much farther the original request asked to go. */
16581658
16591659 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)
16621662 {
16631663 struct frame_info *prev;
16641664 struct frame_info *frame1;
--- a/gdb/standalone.c
+++ b/gdb/standalone.c
@@ -283,7 +283,7 @@ fprintf (int ign, int a1, int a2, int a3, int a4, int a5, int a6, int a7,
283283 display_string (buffer);
284284 }
285285
286-fwrite (register char *buf, int numelts, int size, int stream)
286+fwrite (char *buf, int numelts, int size, int stream)
287287 {
288288 int i = numelts * size;
289289 while (i-- > 0)
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -249,8 +249,8 @@ obsavestring (const char *ptr, int size, struct obstack *obstackp)
249249 short. FIXME: Is this really still true with a compiler that can
250250 inline memcpy? */
251251 {
252- register const char *p1 = ptr;
253- register char *p2 = p;
252+ const char *p1 = ptr;
253+ char *p2 = p;
254254 const char *end = ptr + size;
255255 while (p1 != end)
256256 *p2++ = *p1++;
@@ -290,7 +290,7 @@ decrement_reading_symtab (void *dummy)
290290 case inline. */
291291
292292 struct symtab *
293-psymtab_to_symtab (register struct partial_symtab *pst)
293+psymtab_to_symtab (struct partial_symtab *pst)
294294 {
295295 /* If it's been looked up before, return it. */
296296 if (pst->symtab)
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -116,7 +116,7 @@ free_symtab_block (struct objfile *objfile, struct block *b)
116116 It is s->free_code that says which alternative to use. */
117117
118118 void
119-free_symtab (register struct symtab *s)
119+free_symtab (struct symtab *s)
120120 {
121121 int i, n;
122122 struct blockvector *bv;
@@ -1228,7 +1228,7 @@ block_depth (struct block *block)
12281228 be freed in free_objfile(). */
12291229
12301230 void
1231-extend_psymbol_list (register struct psymbol_allocation_list *listp,
1231+extend_psymbol_list (struct psymbol_allocation_list *listp,
12321232 struct objfile *objfile)
12331233 {
12341234 int new_size;
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -1630,7 +1630,7 @@ find_main_psymtab (void)
16301630 */
16311631
16321632 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,
16341634 const char *linkage_name,
16351635 const domain_enum domain)
16361636 {
@@ -2288,7 +2288,7 @@ find_line_pc_range (struct symtab_and_line sal, CORE_ADDR *startptr,
22882288 Set *EXACT_MATCH nonzero if the value returned is an exact match. */
22892289
22902290 static int
2291-find_line_common (register struct linetable *l, register int lineno,
2291+find_line_common (struct linetable *l, int lineno,
22922292 int *exact_match)
22932293 {
22942294 int i;
@@ -2309,7 +2309,7 @@ find_line_common (register struct linetable *l, register int lineno,
23092309 len = l->nitems;
23102310 for (i = 0; i < len; i++)
23112311 {
2312- register struct linetable_entry *item = &(l->item[i]);
2312+ struct linetable_entry *item = &(l->item[i]);
23132313
23142314 if (item->line == lineno)
23152315 {
@@ -2417,7 +2417,7 @@ operator_chars (char *p, char **end)
24172417
24182418 if (isalpha (*p) || *p == '_' || *p == '$')
24192419 {
2420- register char *q = p + 1;
2420+ char *q = p + 1;
24212421 while (isalnum (*q) || *q == '_' || *q == '$')
24222422 q++;
24232423 *end = q;
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -282,38 +282,38 @@ make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function,
282282 until we get back to the point OLD_CHAIN in the cleanup_chain. */
283283
284284 void
285-do_cleanups (register struct cleanup *old_chain)
285+do_cleanups (struct cleanup *old_chain)
286286 {
287287 do_my_cleanups (&cleanup_chain, old_chain);
288288 }
289289
290290 void
291-do_final_cleanups (register struct cleanup *old_chain)
291+do_final_cleanups (struct cleanup *old_chain)
292292 {
293293 do_my_cleanups (&final_cleanup_chain, old_chain);
294294 }
295295
296296 void
297-do_run_cleanups (register struct cleanup *old_chain)
297+do_run_cleanups (struct cleanup *old_chain)
298298 {
299299 do_my_cleanups (&run_cleanup_chain, old_chain);
300300 }
301301
302302 void
303-do_exec_cleanups (register struct cleanup *old_chain)
303+do_exec_cleanups (struct cleanup *old_chain)
304304 {
305305 do_my_cleanups (&exec_cleanup_chain, old_chain);
306306 }
307307
308308 void
309-do_exec_error_cleanups (register struct cleanup *old_chain)
309+do_exec_error_cleanups (struct cleanup *old_chain)
310310 {
311311 do_my_cleanups (&exec_error_cleanup_chain, old_chain);
312312 }
313313
314314 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)
317317 {
318318 struct cleanup *ptr;
319319 while ((ptr = *pmy_chain) != old_chain)
@@ -328,26 +328,26 @@ do_my_cleanups (register struct cleanup **pmy_chain,
328328 until we get back to the point OLD_CHAIN in the cleanup_chain. */
329329
330330 void
331-discard_cleanups (register struct cleanup *old_chain)
331+discard_cleanups (struct cleanup *old_chain)
332332 {
333333 discard_my_cleanups (&cleanup_chain, old_chain);
334334 }
335335
336336 void
337-discard_final_cleanups (register struct cleanup *old_chain)
337+discard_final_cleanups (struct cleanup *old_chain)
338338 {
339339 discard_my_cleanups (&final_cleanup_chain, old_chain);
340340 }
341341
342342 void
343-discard_exec_error_cleanups (register struct cleanup *old_chain)
343+discard_exec_error_cleanups (struct cleanup *old_chain)
344344 {
345345 discard_my_cleanups (&exec_error_cleanup_chain, old_chain);
346346 }
347347
348348 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)
351351 {
352352 struct cleanup *ptr;
353353 while ((ptr = *pmy_chain) != old_chain)
@@ -1265,7 +1265,7 @@ mstrsave (void *md, const char *ptr)
12651265 }
12661266
12671267 void
1268-print_spaces (register int n, register struct ui_file *file)
1268+print_spaces (int n, struct ui_file *file)
12691269 {
12701270 fputs_unfiltered (n_spaces (n), file);
12711271 }
@@ -1456,8 +1456,8 @@ parse_escape (char **string_ptr)
14561456 case '6':
14571457 case '7':
14581458 {
1459- register int i = c - '0';
1460- register int count = 0;
1459+ int i = c - '0';
1460+ int count = 0;
14611461 while (++count < 3)
14621462 {
14631463 c = (**string_ptr);
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -969,7 +969,7 @@ push_bytes (CORE_ADDR sp, char *buffer, int len)
969969 it to be an argument to a function. */
970970
971971 static CORE_ADDR
972-value_push (register CORE_ADDR sp, struct value *arg)
972+value_push (CORE_ADDR sp, struct value *arg)
973973 {
974974 int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg));
975975 int container_len = len;
@@ -1232,7 +1232,7 @@ typecmp (int staticp, int varargs, int nargs,
12321232
12331233 static struct value *
12341234 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)
12361236 {
12371237 int i;
12381238 int nbases = TYPE_N_BASECLASSES (type);
@@ -1472,7 +1472,7 @@ find_rt_vbase_offset (struct type *type, struct type *basetype, char *valaddr,
14721472 static struct value *
14731473 search_struct_method (char *name, struct value **arg1p,
14741474 struct value **args, int offset,
1475- int *static_memfuncp, register struct type *type)
1475+ int *static_memfuncp, struct type *type)
14761476 {
14771477 int i;
14781478 struct value *v;
@@ -2138,7 +2138,7 @@ destructor_name_p (const char *name, const struct type *type)
21382138 target structure/union is defined, otherwise, return 0. */
21392139
21402140 static int
2141-check_field_in (register struct type *type, const char *name)
2141+check_field_in (struct type *type, const char *name)
21422142 {
21432143 int i;
21442144
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -883,7 +883,7 @@ value_change_enclosing_type (struct value *val, struct type *new_encl_type)
883883
884884 struct value *
885885 value_primitive_field (struct value *arg1, int offset,
886- register int fieldno, register struct type *arg_type)
886+ int fieldno, struct type *arg_type)
887887 {
888888 struct value *v;
889889 struct type *type;
@@ -952,7 +952,7 @@ value_primitive_field (struct value *arg1, int offset,
952952 FIELDNO says which field. */
953953
954954 struct value *
955-value_field (struct value *arg1, register int fieldno)
955+value_field (struct value *arg1, int fieldno)
956956 {
957957 return value_primitive_field (arg1, 0, fieldno, VALUE_TYPE (arg1));
958958 }
@@ -1114,7 +1114,7 @@ modify_field (char *addr, LONGEST fieldval, int bitpos, int bitsize)
11141114 /* Convert C numbers into newly allocated values */
11151115
11161116 struct value *
1117-value_from_longest (struct type *type, register LONGEST num)
1117+value_from_longest (struct type *type, LONGEST num)
11181118 {
11191119 struct value *val = allocate_value (type);
11201120 enum type_code code;
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -1438,7 +1438,7 @@ static struct type *var_symbol_type;
14381438 /* process one xcoff symbol. */
14391439
14401440 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)
14421442 {
14431443 struct symbol onesymbol;
14441444 struct symbol *sym = &onesymbol;
@@ -2535,7 +2535,7 @@ scan_xcoff_symtab (struct objfile *objfile)
25352535 if (pst && STREQ (namestring, pst->filename))
25362536 continue;
25372537 {
2538- register int i;
2538+ int i;
25392539 for (i = 0; i < includes_used; i++)
25402540 if (STREQ (namestring, psymtab_include_list[i]))
25412541 {