From: Andrew Cagney Date: Sun, 14 Sep 2003 16:32:14 +0000 (+0000) Subject: 2003-09-14 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52f0bd74b2d084346e08abf2c7d9b5435fc1a9d5;p=binutils-gdb.git 2003-09-14 Andrew Cagney * alpha-nat.c: Remove some occurances of "register". * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto. * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto. * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto. * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto. * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto. * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto. * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto. * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto. * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto. * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto. * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto. * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto. * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto. * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto. * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto. * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto. * solib.c, somread.c, source.c, sparc-tdep.c: Ditto. * stabsread.c, stack.c, standalone.c, symfile.c: Ditto. * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto. * typeprint.c, utils.c, valarith.c, valops.c: Ditto. * values.c, vax-tdep.c, xcoffread.c: Ditto. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 39a23772490..3838f2ad740 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,29 @@ +2003-09-14 Andrew Cagney + + * alpha-nat.c: Remove some occurances of "register". + * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto. + * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto. + * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto. + * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto. + * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto. + * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto. + * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto. + * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto. + * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto. + * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto. + * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto. + * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto. + * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto. + * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto. + * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto. + * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto. + * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto. + * solib.c, somread.c, source.c, sparc-tdep.c: Ditto. + * stabsread.c, stack.c, standalone.c, symfile.c: Ditto. + * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto. + * typeprint.c, utils.c, valarith.c, valops.c: Ditto. + * values.c, vax-tdep.c, xcoffread.c: Ditto. + 2003-09-13 Andrew Cagney * config/pa/tm-hppa64.h (struct frame_info): Declare opaque. diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c index 342deff22b4..0a78d949170 100644 --- a/gdb/alpha-nat.c +++ b/gdb/alpha-nat.c @@ -59,8 +59,8 @@ static void fetch_osf_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, CORE_ADDR reg_addr) { - register int regno; - register int addr; + int regno; + int addr; int bad_reg = -1; /* Table to map a gdb regnum to an index in the core register @@ -200,7 +200,7 @@ kernel_u_size (void) void supply_gregset (gdb_gregset_t *gregsetp) { - register long *regp = ALPHA_REGSET_BASE (gregsetp); + long *regp = ALPHA_REGSET_BASE (gregsetp); void *unique = ALPHA_REGSET_UNIQUE (gregsetp); /* PC is in slot 32. */ @@ -210,7 +210,7 @@ supply_gregset (gdb_gregset_t *gregsetp) void fill_gregset (gdb_gregset_t *gregsetp, int regno) { - register long *regp = ALPHA_REGSET_BASE (gregsetp); + long *regp = ALPHA_REGSET_BASE (gregsetp); void *unique = ALPHA_REGSET_UNIQUE (gregsetp); /* PC is in slot 32. */ @@ -225,7 +225,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno) void supply_fpregset (gdb_fpregset_t *fpregsetp) { - register long *regp = ALPHA_REGSET_BASE (fpregsetp); + long *regp = ALPHA_REGSET_BASE (fpregsetp); /* FPCR is in slot 32. */ alpha_supply_fp_regs (-1, regp, regp + 31); @@ -234,7 +234,7 @@ supply_fpregset (gdb_fpregset_t *fpregsetp) void fill_fpregset (gdb_fpregset_t *fpregsetp, int regno) { - register long *regp = ALPHA_REGSET_BASE (fpregsetp); + long *regp = ALPHA_REGSET_BASE (fpregsetp); /* FPCR is in slot 32. */ alpha_fill_fp_regs (regno, regp, regp + 31); diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c index 4c3e471c84b..ddf27448380 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -278,7 +278,7 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, }; struct alpha_arg *alpha_args = (struct alpha_arg *) alloca (nargs * sizeof (struct alpha_arg)); - register struct alpha_arg *m_arg; + struct alpha_arg *m_arg; char arg_reg_buffer[ALPHA_REGISTER_SIZE * ALPHA_NUM_ARG_REGS]; int required_arg_regs; diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 9999a60ea2e..3ba072d1ff8 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -1492,7 +1492,7 @@ static void arm_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, struct frame_info *frame, const char *args) { - register unsigned long status = read_register (ARM_FPS_REGNUM); + unsigned long status = read_register (ARM_FPS_REGNUM); int type; type = (status >> 24) & 127; @@ -2252,7 +2252,7 @@ static int arm_use_struct_convention (int gcc_p, struct type *type) { int nRc; - register enum type_code code; + enum type_code code; /* In the ARM ABI, "integer" like aggregate types are returned in registers. For an aggregate type to be integer like, its size diff --git a/gdb/blockframe.c b/gdb/blockframe.c index 43edc31a70a..4deb3c17020 100644 --- a/gdb/blockframe.c +++ b/gdb/blockframe.c @@ -272,7 +272,7 @@ get_pc_function_start (CORE_ADDR pc) struct symbol * get_frame_function (struct frame_info *frame) { - register struct block *bl = get_frame_block (frame, 0); + struct block *bl = get_frame_block (frame, 0); if (bl == 0) return 0; return block_function (bl); @@ -285,7 +285,7 @@ get_frame_function (struct frame_info *frame) struct symbol * find_pc_sect_function (CORE_ADDR pc, struct sec *section) { - register struct block *b = block_for_pc_sect (pc, section); + struct block *b = block_for_pc_sect (pc, section); if (b == 0) return 0; return block_function (b); @@ -513,8 +513,8 @@ struct frame_info * block_innermost_frame (struct block *block) { struct frame_info *frame; - register CORE_ADDR start; - register CORE_ADDR end; + CORE_ADDR start; + CORE_ADDR end; CORE_ADDR calling_pc; if (block == NULL) diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index d09425eb136..e669f380af8 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -512,9 +512,9 @@ get_number_or_range (char **pp) static void condition_command (char *arg, int from_tty) { - register struct breakpoint *b; + struct breakpoint *b; char *p; - register int bnum; + int bnum; if (arg == 0) error_no_arg ("breakpoint number"); @@ -564,9 +564,9 @@ condition_command (char *arg, int from_tty) static void commands_command (char *arg, int from_tty) { - register struct breakpoint *b; + struct breakpoint *b; char *p; - register int bnum; + int bnum; struct command_line *l; /* If we allowed this, we would have problems with when to @@ -740,7 +740,7 @@ insert_catchpoint (struct ui_out *uo, void *args) int insert_breakpoints (void) { - register struct breakpoint *b, *temp; + struct breakpoint *b, *temp; int return_val = 0; /* return success code. */ int val = 0; int disabled_breaks = 0; @@ -1118,7 +1118,7 @@ You may have requested too many hardware breakpoints/watchpoints.\n"); int remove_breakpoints (void) { - register struct breakpoint *b; + struct breakpoint *b; int val; ALL_BREAKPOINTS (b) @@ -1136,7 +1136,7 @@ remove_breakpoints (void) int remove_hw_watchpoints (void) { - register struct breakpoint *b; + struct breakpoint *b; int val; ALL_BREAKPOINTS (b) @@ -1157,7 +1157,7 @@ remove_hw_watchpoints (void) int reattach_breakpoints (int pid) { - register struct breakpoint *b; + struct breakpoint *b; int val; struct cleanup *old_chain = save_inferior_ptid (); @@ -1320,7 +1320,7 @@ update_breakpoints_after_exec (void) int detach_breakpoints (int pid) { - register struct breakpoint *b; + struct breakpoint *b; int val; struct cleanup *old_chain = save_inferior_ptid (); @@ -1542,7 +1542,7 @@ remove_breakpoint (struct breakpoint *b, insertion_state_t is) void mark_breakpoints_out (void) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) b->inserted = 0; @@ -1563,7 +1563,7 @@ mark_breakpoints_out (void) void breakpoint_init_inferior (enum inf_context context) { - register struct breakpoint *b, *temp; + struct breakpoint *b, *temp; static int warning_needed = 0; ALL_BREAKPOINTS_SAFE (b, temp) @@ -1638,7 +1638,7 @@ breakpoint_init_inferior (enum inf_context context) enum breakpoint_here breakpoint_here_p (CORE_ADDR pc) { - register struct breakpoint *b; + struct breakpoint *b; int any_breakpoint_here = 0; ALL_BREAKPOINTS (b) @@ -1667,7 +1667,7 @@ breakpoint_here_p (CORE_ADDR pc) int breakpoint_inserted_here_p (CORE_ADDR pc) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->inserted @@ -2507,7 +2507,7 @@ which its expression is valid.\n"); bpstat bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint) { - register struct breakpoint *b, *temp; + struct breakpoint *b, *temp; CORE_ADDR bp_addr; /* True if we've hit a breakpoint (as opposed to a watchpoint). */ int real_breakpoint = 0; @@ -3220,8 +3220,8 @@ static void print_one_breakpoint (struct breakpoint *b, CORE_ADDR *last_addr) { - register struct command_line *l; - register struct symbol *sym; + struct command_line *l; + struct symbol *sym; struct ep_type_description { enum bptype type; @@ -3527,7 +3527,7 @@ static int do_captured_breakpoint_query (struct ui_out *uiout, void *data) { struct captured_breakpoint_query_args *args = data; - register struct breakpoint *b; + struct breakpoint *b; CORE_ADDR dummy_addr = 0; ALL_BREAKPOINTS (b) { @@ -3579,7 +3579,7 @@ user_settable_breakpoint (const struct breakpoint *b) static void breakpoint_1 (int bnum, int allflag) { - register struct breakpoint *b; + struct breakpoint *b; CORE_ADDR last_addr = (CORE_ADDR) -1; int nr_printable_breakpoints; struct cleanup *bkpttbl_chain; @@ -3695,8 +3695,8 @@ maintenance_info_breakpoints (char *bnum_exp, int from_tty) static void describe_other_breakpoints (CORE_ADDR pc, asection *section) { - register int others = 0; - register struct breakpoint *b; + int others = 0; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->address == pc) /* address match / overlay match */ @@ -3784,8 +3784,8 @@ breakpoint_address_is_meaningful (struct breakpoint *bpt) static void check_duplicates (struct breakpoint *bpt) { - register struct breakpoint *b; - register int count = 0; + struct breakpoint *b; + int count = 0; struct breakpoint *perm_bp = 0; CORE_ADDR address = bpt->address; asection *section = bpt->section; @@ -3862,7 +3862,7 @@ check_duplicates (struct breakpoint *bpt) struct breakpoint * set_raw_breakpoint (struct symtab_and_line sal, enum bptype bptype) { - register struct breakpoint *b, *b1; + struct breakpoint *b, *b1; b = (struct breakpoint *) xmalloc (sizeof (struct breakpoint)); memset (b, 0, sizeof (*b)); @@ -3971,7 +3971,7 @@ create_longjmp_breakpoint (char *func_name) void enable_longjmp_breakpoint (void) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->type == bp_longjmp) @@ -3984,7 +3984,7 @@ enable_longjmp_breakpoint (void) void disable_longjmp_breakpoint (void) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->type == bp_longjmp @@ -4023,7 +4023,7 @@ create_overlay_event_breakpoint (char *func_name) void enable_overlay_breakpoints (void) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->type == bp_overlay_event) @@ -4037,7 +4037,7 @@ enable_overlay_breakpoints (void) void disable_overlay_breakpoints (void) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->type == bp_overlay_event) @@ -4076,7 +4076,7 @@ remove_thread_event_breakpoints (void) void remove_solib_event_breakpoints (void) { - register struct breakpoint *b, *temp; + struct breakpoint *b, *temp; ALL_BREAKPOINTS_SAFE (b, temp) if (b->type == bp_shlib_event) @@ -4308,7 +4308,7 @@ create_exec_event_catchpoint (int tempflag, char *cond_string) static int hw_breakpoint_used_count (void) { - register struct breakpoint *b; + struct breakpoint *b; int i = 0; ALL_BREAKPOINTS (b) @@ -4323,7 +4323,7 @@ hw_breakpoint_used_count (void) static int hw_watchpoint_used_count (enum bptype type, int *other_type_used) { - register struct breakpoint *b; + struct breakpoint *b; int i = 0; *other_type_used = 0; @@ -4352,7 +4352,7 @@ hw_watchpoint_used_count (enum bptype type, int *other_type_used) void set_longjmp_resume_breakpoint (CORE_ADDR pc, struct frame_id frame_id) { - register struct breakpoint *b; + struct breakpoint *b; ALL_BREAKPOINTS (b) if (b->type == bp_longjmp_resume) @@ -4414,7 +4414,7 @@ struct breakpoint * set_momentary_breakpoint (struct symtab_and_line sal, struct frame_id frame_id, enum bptype type) { - register struct breakpoint *b; + struct breakpoint *b; b = set_raw_breakpoint (sal, type); b->enable_state = bp_enabled; b->disposition = disp_donttouch; @@ -4743,7 +4743,7 @@ break_command_1 (char *arg, int flag, int from_tty) { int tempflag, hardwareflag; struct symtabs_and_lines sals; - register struct expression **cond = 0; + struct expression **cond = 0; /* Pointers in arg to the start, and one past the end, of the condition. */ char **cond_string = (char **) NULL; @@ -4886,7 +4886,7 @@ do_captured_breakpoint (void *data) { struct captured_breakpoint_args *args = data; struct symtabs_and_lines sals; - register struct expression **cond; + struct expression **cond; struct cleanup *old_chain; struct cleanup *breakpoint_chain = NULL; int i; @@ -6510,8 +6510,8 @@ breakpoint_auto_delete (bpstat bs) void delete_breakpoint (struct breakpoint *bpt) { - register struct breakpoint *b; - register bpstat bs; + struct breakpoint *b; + bpstat bs; if (bpt == NULL) error ("Internal error (attempted to delete a NULL breakpoint)"); @@ -6999,7 +6999,7 @@ breakpoint_re_set_thread (struct breakpoint *b) void set_ignore_count (int bptnum, int count, int from_tty) { - register struct breakpoint *b; + struct breakpoint *b; if (count < 0) count = 0; @@ -7044,7 +7044,7 @@ static void ignore_command (char *args, int from_tty) { char *p = args; - register int num; + int num; if (p == 0) error_no_arg ("a breakpoint number"); @@ -7068,10 +7068,10 @@ ignore_command (char *args, int from_tty) static void map_breakpoint_numbers (char *args, void (*function) (struct breakpoint *)) { - register char *p = args; + char *p = args; char *p1; - register int num; - register struct breakpoint *b, *tmp; + int num; + struct breakpoint *b, *tmp; int match; if (p == 0) @@ -7136,7 +7136,7 @@ disable_breakpoint (struct breakpoint *bpt) static void disable_command (char *args, int from_tty) { - register struct breakpoint *bpt; + struct breakpoint *bpt; if (args == 0) ALL_BREAKPOINTS (bpt) switch (bpt->type) @@ -7270,7 +7270,7 @@ enable_breakpoint (struct breakpoint *bpt) static void enable_command (char *args, int from_tty) { - register struct breakpoint *bpt; + struct breakpoint *bpt; if (args == 0) ALL_BREAKPOINTS (bpt) switch (bpt->type) diff --git a/gdb/buildsym.c b/gdb/buildsym.c index aa87d4c4fcb..1a097495cfa 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -84,7 +84,7 @@ static int compare_line_numbers (const void *ln1p, const void *ln2p); void add_free_pendings (struct pending *list) { - register struct pending *link = list; + struct pending *link = list; if (list) { @@ -102,7 +102,7 @@ add_free_pendings (struct pending *list) void add_symbol_to_list (struct symbol *symbol, struct pending **listhead) { - register struct pending *link; + struct pending *link; /* If this is an alias for another symbol, don't add it. */ if (symbol->ginfo.name && symbol->ginfo.name[0] == '#') @@ -226,9 +226,9 @@ finish_block (struct symbol *symbol, struct pending **listhead, CORE_ADDR start, CORE_ADDR end, struct objfile *objfile) { - register struct pending *next, *next1; - register struct block *block; - register struct pending_block *pblock; + struct pending *next, *next1; + struct block *block; + struct pending_block *pblock; struct pending_block *opblock; block = allocate_block (&objfile->symbol_obstack); @@ -447,7 +447,7 @@ void record_pending_block (struct objfile *objfile, struct block *block, struct pending_block *opblock) { - register struct pending_block *pblock; + struct pending_block *pblock; pblock = (struct pending_block *) obstack_alloc (&objfile->symbol_obstack, sizeof (struct pending_block)); @@ -467,9 +467,9 @@ record_pending_block (struct objfile *objfile, struct block *block, static struct blockvector * make_blockvector (struct objfile *objfile) { - register struct pending_block *next; - register struct blockvector *blockvector; - register int i; + struct pending_block *next; + struct blockvector *blockvector; + int i; /* Count the length of the list of blocks. */ @@ -539,7 +539,7 @@ make_blockvector (struct objfile *objfile) void start_subfile (char *name, char *dirname) { - register struct subfile *subfile; + struct subfile *subfile; /* See if this subfile is already known as a subfile of the current main source file. */ @@ -677,7 +677,7 @@ patch_subfile_names (struct subfile *subfile, char *name) void push_subfile (void) { - register struct subfile_stack *tem + struct subfile_stack *tem = (struct subfile_stack *) xmalloc (sizeof (struct subfile_stack)); tem->next = subfile_stack; @@ -692,8 +692,8 @@ push_subfile (void) char * pop_subfile (void) { - register char *name; - register struct subfile_stack *link = subfile_stack; + char *name; + struct subfile_stack *link = subfile_stack; if (link == NULL) { @@ -824,10 +824,10 @@ start_symtab (char *name, char *dirname, CORE_ADDR start_addr) struct symtab * end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) { - register struct symtab *symtab = NULL; - register struct blockvector *blockvector; - register struct subfile *subfile; - register struct context_stack *cstk; + struct symtab *symtab = NULL; + struct blockvector *blockvector; + struct subfile *subfile; + struct context_stack *cstk; struct subfile *nextsub; /* Finish the lexical context of the last function in the file; pop @@ -1056,7 +1056,7 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) struct context_stack * push_context (int desc, CORE_ADDR valu) { - register struct context_stack *new; + struct context_stack *new; if (context_stack_depth == context_stack_size) { @@ -1118,7 +1118,7 @@ record_debugformat (char *format) void merge_symbol_lists (struct pending **srclist, struct pending **targetlist) { - register int i; + int i; if (!srclist || !*srclist) return; diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 75e581f830e..b134d2939db 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -65,7 +65,7 @@ void c_print_type (struct type *type, char *varstring, struct ui_file *stream, int show, int level) { - register enum type_code code; + enum type_code code; int demangled_args; int need_post_space; diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 4ca48a65a62..62ad59fe4bc 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -70,7 +70,7 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int format, int deref_ref, int recurse, enum val_prettyprint pretty) { - register unsigned int i = 0; /* Number of characters printed */ + unsigned int i = 0; /* Number of characters printed */ unsigned len; struct type *elttype; unsigned eltlen; diff --git a/gdb/coffread.c b/gdb/coffread.c index ac71f96dd03..5fab736bd19 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -197,7 +197,7 @@ static void coff_symtab_read (long, unsigned int, struct objfile *); static void coff_locate_sections (bfd *abfd, asection *sectp, void *csip) { - register struct coff_symfile_info *csi; + struct coff_symfile_info *csi; const char *name; csi = (struct coff_symfile_info *) csip; @@ -339,8 +339,8 @@ coff_lookup_type (register int index) static struct type * coff_alloc_type (int index) { - register struct type **type_addr = coff_lookup_type (index); - register struct type *type = *type_addr; + struct type **type_addr = coff_lookup_type (index); + struct type *type = *type_addr; /* If we are referring to a type not known at all yet, allocate an empty type for it. @@ -515,7 +515,7 @@ coff_symfile_read (struct objfile *objfile, int mainline) bfd *abfd = objfile->obfd; coff_data_type *cdata = coff_data (abfd); char *name = bfd_get_filename (abfd); - register int val; + int val; unsigned int num_symbols; int symtab_offset; int stringtab_offset; @@ -679,9 +679,9 @@ static void coff_symtab_read (long symtab_offset, unsigned int nsyms, struct objfile *objfile) { - register struct context_stack *new; + struct context_stack *new; struct coff_symbol coff_symbol; - register struct coff_symbol *cs = &coff_symbol; + struct coff_symbol *cs = &coff_symbol; static struct internal_syment main_sym; static union internal_auxent main_aux; struct coff_symbol fcn_cs_saved; @@ -1270,7 +1270,7 @@ static char * coff_getfilename (union internal_auxent *aux_entry) { static char buffer[BUFSIZ]; - register char *temp; + char *temp; char *result; if (aux_entry->x_file.x_n.x_zeroes == 0) @@ -1351,7 +1351,7 @@ static void enter_linenos (long file_offset, register int first_line, register int last_line, struct objfile *objfile) { - register char *rawptr; + char *rawptr; struct internal_lineno lptr; if (!linetab) @@ -1390,8 +1390,8 @@ enter_linenos (long file_offset, register int first_line, static void patch_type (struct type *type, struct type *real_type) { - register struct type *target = TYPE_TARGET_TYPE (type); - register struct type *real_target = TYPE_TARGET_TYPE (real_type); + struct type *target = TYPE_TARGET_TYPE (type); + struct type *real_target = TYPE_TARGET_TYPE (real_type); int field_size = TYPE_NFIELDS (real_target) * sizeof (struct field); TYPE_LENGTH (target) = TYPE_LENGTH (real_target); @@ -1414,9 +1414,9 @@ patch_type (struct type *type, struct type *real_type) static void patch_opaque_types (struct symtab *s) { - register struct block *b; + struct block *b; struct dict_iterator iter; - register struct symbol *real_sym; + struct symbol *real_sym; /* Go through the per-file symbols only */ b = BLOCKVECTOR_BLOCK (BLOCKVECTOR (s), STATIC_BLOCK); @@ -1476,7 +1476,7 @@ process_coff_symbol (register struct coff_symbol *cs, register union internal_auxent *aux, struct objfile *objfile) { - register struct symbol *sym + struct symbol *sym = (struct symbol *) obstack_alloc (&objfile->symbol_obstack, sizeof (struct symbol)); char *name; @@ -1699,7 +1699,7 @@ static struct type * decode_type (register struct coff_symbol *cs, unsigned int c_type, register union internal_auxent *aux) { - register struct type *type = 0; + struct type *type = 0; unsigned int new_c_type; if (c_type & ~N_BTMASK) @@ -1949,14 +1949,14 @@ coff_read_struct_type (int index, int length, int lastsym) struct field field; }; - register struct type *type; - register struct nextfield *list = 0; + struct type *type; + struct nextfield *list = 0; struct nextfield *new; int nfields = 0; - register int n; + int n; char *name; struct coff_symbol member_sym; - register struct coff_symbol *ms = &member_sym; + struct coff_symbol *ms = &member_sym; struct internal_syment sub_sym; union internal_auxent sub_aux; int done = 0; @@ -2040,18 +2040,18 @@ coff_read_struct_type (int index, int length, int lastsym) static struct type * coff_read_enum_type (int index, int length, int lastsym) { - register struct symbol *sym; - register struct type *type; + struct symbol *sym; + struct type *type; int nsyms = 0; int done = 0; struct pending **symlist; struct coff_symbol member_sym; - register struct coff_symbol *ms = &member_sym; + struct coff_symbol *ms = &member_sym; struct internal_syment sub_sym; union internal_auxent sub_aux; struct pending *osyms, *syms; int o_nsyms; - register int n; + int n; char *name; int unsigned_enum = 1; diff --git a/gdb/corefile.c b/gdb/corefile.c index 094a3eff0c1..572b4486cd4 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -310,8 +310,8 @@ read_memory_unsigned_integer (CORE_ADDR memaddr, int len) void read_memory_string (CORE_ADDR memaddr, char *buffer, int max_len) { - register char *cp; - register int i; + char *cp; + int i; int cnt; cp = buffer; diff --git a/gdb/cp-support.c b/gdb/cp-support.c index 10e78363fa6..9e6d44b119c 100644 --- a/gdb/cp-support.c +++ b/gdb/cp-support.c @@ -483,11 +483,11 @@ overload_list_add_symbol (struct symbol *sym, char *oload_name) struct symbol ** make_symbol_overload_list (struct symbol *fsym) { - register struct symbol *sym; - register struct symtab *s; - register struct partial_symtab *ps; - register struct objfile *objfile; - register struct block *b, *surrounding_static_block = 0; + struct symbol *sym; + struct symtab *s; + struct partial_symtab *ps; + struct objfile *objfile; + struct block *b, *surrounding_static_block = 0; struct dict_iterator iter; /* The name we are completing on. */ char *oload_name = NULL; diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 27d8ec327ce..42a48f55676 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -686,7 +686,7 @@ cp_print_class_member (char *valaddr, struct type *domain, print it. */ int extra = 0; int bits = 0; - register unsigned int i; + unsigned int i; unsigned len = TYPE_NFIELDS (domain); /* @@ Make VAL into bit offset */ diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c index b371d0b6947..1ef0eee76d3 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -1148,7 +1148,7 @@ cris_frame_init_saved_regs (struct frame_info *fi) get_frame_base (fi)); /* Examine the entire prologue. */ - register int frameless_p = 0; + int frameless_p = 0; /* Has this frame's registers already been initialized? */ if (get_frame_saved_regs (fi)) @@ -1500,9 +1500,9 @@ cris_push_return_address (CORE_ADDR pc, CORE_ADDR sp) static void cris_pop_frame (void) { - register struct frame_info *fi = get_current_frame (); - register int regno; - register int stack_offset = 0; + struct frame_info *fi = get_current_frame (); + int regno; + int stack_offset = 0; if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi), diff --git a/gdb/dbxread.c b/gdb/dbxread.c index d58fc5b2ebe..b59c4b2256c 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -352,8 +352,8 @@ add_this_object_header_file (int i) static void add_old_header_file (char *name, int instance) { - register struct header_file *p = HEADER_FILES (current_objfile); - register int i; + struct header_file *p = HEADER_FILES (current_objfile); + int i; for (i = 0; i < N_HEADER_FILES (current_objfile); i++) if (STREQ (p[i].name, name) && instance == p[i].instance) @@ -378,8 +378,8 @@ add_old_header_file (char *name, int instance) static void add_new_header_file (char *name, int instance) { - register int i; - register struct header_file *hfile; + int i; + struct header_file *hfile; /* Make sure there is room for one more header file. */ @@ -421,7 +421,7 @@ add_new_header_file (char *name, int instance) static struct type ** explicit_lookup_type (int real_filenum, int index) { - register struct header_file *f = &HEADER_FILES (current_objfile)[real_filenum]; + struct header_file *f = &HEADER_FILES (current_objfile)[real_filenum]; if (index >= f->length) { @@ -1292,12 +1292,12 @@ function_outside_compilation_unit_complaint (const char *arg1) static void read_dbx_symtab (struct objfile *objfile) { - register struct external_nlist *bufp = 0; /* =0 avoids gcc -Wall glitch */ + struct external_nlist *bufp = 0; /* =0 avoids gcc -Wall glitch */ struct internal_nlist nlist; CORE_ADDR text_addr; int text_size; - register char *namestring; + char *namestring; int nsl; int past_first_source_file = 0; CORE_ADDR last_o_file_start = 0; @@ -2588,12 +2588,12 @@ dbx_psymtab_to_symtab (struct partial_symtab *pst) static void read_ofile_symtab (struct partial_symtab *pst) { - register char *namestring; - register struct external_nlist *bufp; + char *namestring; + struct external_nlist *bufp; struct internal_nlist nlist; unsigned char type; unsigned max_symnum; - register bfd *abfd; + bfd *abfd; struct objfile *objfile; int sym_offset; /* Offset to start of symbols to read */ int sym_size; /* Size of symbols to read */ @@ -2805,7 +2805,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name, static CORE_ADDR last_pc_address; #endif - register struct context_stack *new; + struct context_stack *new; /* This remembers the address of the start of a function. It is used because in Solaris 2, N_LBRAC, N_RBRAC, and N_SLINE entries are relative to the current function's start address. On systems diff --git a/gdb/dcache.c b/gdb/dcache.c index 6e742746363..eef6bbe1dae 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -217,7 +217,7 @@ dcache_invalidate (DCACHE *dcache) static struct dcache_block * dcache_hit (DCACHE *dcache, CORE_ADDR addr) { - register struct dcache_block *db; + struct dcache_block *db; /* Search all cache blocks for one that is at this address. */ db = dcache->valid_head; @@ -383,7 +383,7 @@ dcache_read_line (DCACHE *dcache, struct dcache_block *db) static struct dcache_block * dcache_alloc (DCACHE *dcache, CORE_ADDR addr) { - register struct dcache_block *db; + struct dcache_block *db; /* Take something from the free list */ db = dcache->free_head; @@ -444,7 +444,7 @@ dcache_writeback (DCACHE *dcache) static int dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) { - register struct dcache_block *db = dcache_hit (dcache, addr); + struct dcache_block *db = dcache_hit (dcache, addr); if (!db) { @@ -471,7 +471,7 @@ dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) static int dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) { - register struct dcache_block *db = dcache_hit (dcache, addr); + struct dcache_block *db = dcache_hit (dcache, addr); if (!db) { diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index a7435cc4ddd..75d81e9726b 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2133,7 +2133,7 @@ static void read_func_scope (struct die_info *die, struct objfile *objfile, const struct comp_unit_head *cu_header) { - register struct context_stack *new; + struct context_stack *new; CORE_ADDR lowpc; CORE_ADDR highpc; struct die_info *child_die; @@ -2244,7 +2244,7 @@ static void read_lexical_block_scope (struct die_info *die, struct objfile *objfile, const struct comp_unit_head *cu_header) { - register struct context_stack *new; + struct context_stack *new; CORE_ADDR lowpc, highpc; struct die_info *child_die; diff --git a/gdb/elfread.c b/gdb/elfread.c index a655797484f..8c278107d37 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -77,7 +77,7 @@ static void free_elfinfo (void *); static void elf_locate_sections (bfd *ignore_abfd, asection *sectp, void *eip) { - register struct elfinfo *ei; + struct elfinfo *ei; ei = (struct elfinfo *) eip; if (STREQ (sectp->name, ".debug")) diff --git a/gdb/environ.c b/gdb/environ.c index 1f9a9d67e9f..02dd57e787a 100644 --- a/gdb/environ.c +++ b/gdb/environ.c @@ -30,7 +30,7 @@ struct environ * make_environ (void) { - register struct environ *e; + struct environ *e; e = (struct environ *) xmalloc (sizeof (struct environ)); @@ -45,7 +45,7 @@ make_environ (void) void free_environ (register struct environ *e) { - register char **vector = e->vector; + char **vector = e->vector; while (*vector) xfree (*vector++); @@ -61,7 +61,7 @@ void init_environ (register struct environ *e) { extern char **environ; - register int i; + int i; if (environ == NULL) return; @@ -100,9 +100,9 @@ environ_vector (struct environ *e) char * get_in_environ (const struct environ *e, const char *var) { - register int len = strlen (var); - register char **vector = e->vector; - register char *s; + int len = strlen (var); + char **vector = e->vector; + char *s; for (; (s = *vector) != NULL; vector++) if (STREQN (s, var, len) && s[len] == '=') @@ -116,10 +116,10 @@ get_in_environ (const struct environ *e, const char *var) void set_in_environ (struct environ *e, const char *var, const char *value) { - register int i; - register int len = strlen (var); - register char **vector = e->vector; - register char *s; + int i; + int len = strlen (var); + char **vector = e->vector; + char *s; for (i = 0; (s = vector[i]) != NULL; i++) if (STREQN (s, var, len) && s[len] == '=') @@ -163,9 +163,9 @@ set_in_environ (struct environ *e, const char *var, const char *value) void unset_in_environ (struct environ *e, char *var) { - register int len = strlen (var); - register char **vector = e->vector; - register char *s; + int len = strlen (var); + char **vector = e->vector; + char *s; for (; (s = *vector) != NULL; vector++) { diff --git a/gdb/eval.c b/gdb/eval.c index 99a1b83433f..0820096b9de 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -80,8 +80,8 @@ CORE_ADDR parse_and_eval_address (char *exp) { struct expression *expr = parse_expression (exp); - register CORE_ADDR addr; - register struct cleanup *old_chain = + CORE_ADDR addr; + struct cleanup *old_chain = make_cleanup (free_current_contents, &expr); addr = value_as_address (evaluate_expression (expr)); @@ -96,8 +96,8 @@ CORE_ADDR parse_and_eval_address_1 (char **expptr) { struct expression *expr = parse_exp_1 (expptr, (struct block *) 0, 0); - register CORE_ADDR addr; - register struct cleanup *old_chain = + CORE_ADDR addr; + struct cleanup *old_chain = make_cleanup (free_current_contents, &expr); addr = value_as_address (evaluate_expression (expr)); @@ -111,8 +111,8 @@ LONGEST parse_and_eval_long (char *exp) { struct expression *expr = parse_expression (exp); - register LONGEST retval; - register struct cleanup *old_chain = + LONGEST retval; + struct cleanup *old_chain = make_cleanup (free_current_contents, &expr); retval = value_as_long (evaluate_expression (expr)); @@ -125,7 +125,7 @@ parse_and_eval (char *exp) { struct expression *expr = parse_expression (exp); struct value *val; - register struct cleanup *old_chain = + struct cleanup *old_chain = make_cleanup (free_current_contents, &expr); val = evaluate_expression (expr); @@ -142,7 +142,7 @@ parse_to_comma_and_eval (char **expp) { struct expression *expr = parse_exp_1 (expp, (struct block *) 0, 1); struct value *val; - register struct cleanup *old_chain = + struct cleanup *old_chain = make_cleanup (free_current_contents, &expr); val = evaluate_expression (expr); @@ -384,7 +384,7 @@ evaluate_subexp_standard (struct type *expect_type, { enum exp_opcode op; int tem, tem2, tem3; - register int pc, pc2 = 0, oldpos; + int pc, pc2 = 0, oldpos; struct value *arg1 = NULL; struct value *arg2 = NULL; struct value *arg3; @@ -2067,7 +2067,7 @@ evaluate_subexp_for_address (register struct expression *exp, register int *pos, enum noside noside) { enum exp_opcode op; - register int pc; + int pc; struct symbol *var; pc = (*pos); @@ -2146,8 +2146,8 @@ struct value * evaluate_subexp_with_coercion (register struct expression *exp, register int *pos, enum noside noside) { - register enum exp_opcode op; - register int pc; + enum exp_opcode op; + int pc; struct value *val; struct symbol *var; @@ -2183,7 +2183,7 @@ static struct value * evaluate_subexp_for_sizeof (register struct expression *exp, register int *pos) { enum exp_opcode op; - register int pc; + int pc; struct type *type; struct value *val; diff --git a/gdb/event-top.c b/gdb/event-top.c index 9db28fb38be..21f8a7aa366 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -599,7 +599,7 @@ command_line_handler (char *rl) { static char *linebuffer = 0; static unsigned linelength = 0; - register char *p; + char *p; char *p1; extern char *line; extern int linesize; diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c index 44850e39c9a..3a153a34075 100644 --- a/gdb/f-typeprint.c +++ b/gdb/f-typeprint.c @@ -59,7 +59,7 @@ void f_print_type (struct type *type, char *varstring, struct ui_file *stream, int show, int level) { - register enum type_code code; + enum type_code code; int demangled_args; f_type_print_base (type, stream, show, level); diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index f67a260d24c..c51d3f85adf 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -357,7 +357,7 @@ f_val_print (struct type *type, char *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int format, int deref_ref, int recurse, enum val_prettyprint pretty) { - register unsigned int i = 0; /* Number of characters printed */ + unsigned int i = 0; /* Number of characters printed */ struct type *elttype; LONGEST val; CORE_ADDR addr; @@ -580,7 +580,7 @@ info_common_command (char *comname, int from_tty) SAVED_F77_COMMON_PTR the_common; COMMON_ENTRY_PTR entry; struct frame_info *fi; - register char *funname = 0; + char *funname = 0; struct symbol *func; /* We have been told to display the contents of F77 COMMON @@ -674,7 +674,7 @@ there_is_a_visible_common_named (char *comname) { SAVED_F77_COMMON_PTR the_common; struct frame_info *fi; - register char *funname = 0; + char *funname = 0; struct symbol *func; if (comname == NULL) diff --git a/gdb/findvar.c b/gdb/findvar.c index a64ddfb84bb..b5b9853072d 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -393,10 +393,10 @@ symbol_read_needs_frame (struct symbol *sym) struct value * read_var_value (register struct symbol *var, struct frame_info *frame) { - register struct value *v; + struct value *v; struct type *type = SYMBOL_TYPE (var); CORE_ADDR addr; - register int len; + int len; v = allocate_value (type); VALUE_LVAL (v) = lval_memory; /* The most likely possibility. */ diff --git a/gdb/frame.c b/gdb/frame.c index 6e0102699f6..964d67c4c97 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -934,7 +934,7 @@ deprecated_safe_get_selected_frame (void) void select_frame (struct frame_info *fi) { - register struct symtab *s; + struct symtab *s; deprecated_selected_frame = fi; /* NOTE: cagney/2002-05-04: FI can be NULL. This occures when the diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index a0fe55c7d7d..93ff0e246c1 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -147,7 +147,7 @@ static void virtual_base_list_aux (struct type *dclass); struct type * alloc_type (struct objfile *objfile) { - register struct type *type; + struct type *type; /* Alloc the structure and start off with all fields zeroed. */ @@ -228,7 +228,7 @@ smash_type (struct type *type) struct type * make_pointer_type (struct type *type, struct type **typeptr) { - register struct type *ntype; /* New type */ + struct type *ntype; /* New type */ struct objfile *objfile; ntype = TYPE_POINTER_TYPE (type); @@ -295,7 +295,7 @@ lookup_pointer_type (struct type *type) struct type * make_reference_type (struct type *type, struct type **typeptr) { - register struct type *ntype; /* New type */ + struct type *ntype; /* New type */ struct objfile *objfile; ntype = TYPE_REFERENCE_TYPE (type); @@ -357,7 +357,7 @@ lookup_reference_type (struct type *type) struct type * make_function_type (struct type *type, struct type **typeptr) { - register struct type *ntype; /* New type */ + struct type *ntype; /* New type */ struct objfile *objfile; if (typeptr == 0 || *typeptr == 0) /* We'll need to allocate one. */ @@ -509,8 +509,8 @@ make_type_with_address_space (struct type *type, int space_flag) struct type * make_cv_type (int cnst, int voltl, struct type *type, struct type **typeptr) { - register struct type *ntype; /* New type */ - register struct type *tmp_type = type; /* tmp type */ + struct type *ntype; /* New type */ + struct type *tmp_type = type; /* tmp type */ struct objfile *objfile; int new_flags = (TYPE_INSTANCE_FLAGS (type) @@ -593,7 +593,7 @@ replace_type (struct type *ntype, struct type *type) struct type * lookup_member_type (struct type *type, struct type *domain) { - register struct type *mtype; + struct type *mtype; mtype = alloc_type (TYPE_OBJFILE (type)); smash_to_member_type (mtype, domain, type); @@ -1056,8 +1056,8 @@ lookup_primitive_typename (char *name) struct type * lookup_typename (char *name, struct block *block, int noerr) { - register struct symbol *sym; - register struct type *tmp; + struct symbol *sym; + struct type *tmp; sym = lookup_symbol (name, block, VAR_DOMAIN, 0, (struct symtab **) NULL); if (sym == NULL || SYMBOL_CLASS (sym) != LOC_TYPEDEF) @@ -1110,7 +1110,7 @@ lookup_signed_typename (char *name) struct type * lookup_struct (char *name, struct block *block) { - register struct symbol *sym; + struct symbol *sym; sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, (struct symtab **) NULL); @@ -1132,7 +1132,7 @@ lookup_struct (char *name, struct block *block) struct type * lookup_union (char *name, struct block *block) { - register struct symbol *sym; + struct symbol *sym; struct type *t; sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, @@ -1164,7 +1164,7 @@ lookup_union (char *name, struct block *block) struct type * lookup_enum (char *name, struct block *block) { - register struct symbol *sym; + struct symbol *sym; sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, (struct symtab **) NULL); @@ -1876,7 +1876,7 @@ struct type * init_type (enum type_code code, int length, int flags, char *name, struct objfile *objfile) { - register struct type *type; + struct type *type; type = alloc_type (objfile); TYPE_CODE (type) = code; @@ -1971,8 +1971,8 @@ append_composite_type_field (struct type *t, char *name, struct type *field) struct type * lookup_fundamental_type (struct objfile *objfile, int typeid) { - register struct type **typep; - register int nbytes; + struct type **typep; + int nbytes; if (typeid < 0 || typeid >= FT_NUM_MEMBERS) { @@ -2066,7 +2066,7 @@ has_vtable (struct type *dclass) /* In the HP ANSI C++ runtime model, a class has a vtable only if it has virtual functions or virtual bases. */ - register int i; + int i; if (TYPE_CODE (dclass) != TYPE_CODE_CLASS) return 0; @@ -2109,7 +2109,7 @@ primary_base_class (struct type *dclass) is the first directly inherited, non-virtual base class that requires a virtual table */ - register int i; + int i; if (TYPE_CODE (dclass) != TYPE_CODE_CLASS) return NULL; @@ -2138,7 +2138,7 @@ static void virtual_base_list_aux (struct type *dclass) { struct vbase *tmp_vbase; - register int i; + int i; if (TYPE_CODE (dclass) != TYPE_CODE_CLASS) return; @@ -2195,9 +2195,9 @@ virtual_base_list_aux (struct type *dclass) struct type ** virtual_base_list (struct type *dclass) { - register struct vbase *tmp_vbase; - register struct vbase *tmp_vbase_2; - register int i; + struct vbase *tmp_vbase; + struct vbase *tmp_vbase_2; + int i; int count; struct type **vbase_array; @@ -2232,8 +2232,8 @@ virtual_base_list (struct type *dclass) int virtual_base_list_length (struct type *dclass) { - register int i; - register struct vbase *tmp_vbase; + int i; + struct vbase *tmp_vbase; current_vbase_list = NULL; virtual_base_list_aux (dclass); @@ -2250,8 +2250,8 @@ virtual_base_list_length (struct type *dclass) int virtual_base_list_length_skip_primaries (struct type *dclass) { - register int i; - register struct vbase *tmp_vbase; + int i; + struct vbase *tmp_vbase; struct type *primary; primary = TYPE_RUNTIME_PTR (dclass) ? TYPE_PRIMARY_BASE (dclass) : NULL; @@ -2279,8 +2279,8 @@ virtual_base_list_length_skip_primaries (struct type *dclass) int virtual_base_index (struct type *base, struct type *dclass) { - register struct type *vbase; - register int i; + struct type *vbase; + int i; if ((TYPE_CODE (dclass) != TYPE_CODE_CLASS) || (TYPE_CODE (base) != TYPE_CODE_CLASS)) @@ -2309,8 +2309,8 @@ virtual_base_index (struct type *base, struct type *dclass) int virtual_base_index_skip_primaries (struct type *base, struct type *dclass) { - register struct type *vbase; - register int i, j; + struct type *vbase; + int i, j; struct type *primary; if ((TYPE_CODE (dclass) != TYPE_CODE_CLASS) || diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index c90ccb63752..310dda09e79 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -325,7 +325,7 @@ h8300_examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit, CORE_ADDR after_prolog_fp, CORE_ADDR *fsr, struct frame_info *fi) { - register CORE_ADDR next_ip; + CORE_ADDR next_ip; int r; int have_fp = 0; unsigned short insn_word; diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index 04acb6ebb13..fb680d64a26 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -1588,7 +1588,7 @@ void hppa_push_dummy_frame (void) { CORE_ADDR sp, pc, pcspace; - register int regnum; + int regnum; CORE_ADDR int_buffer; double freg_buffer; @@ -1690,9 +1690,9 @@ find_dummy_frame_regs (struct frame_info *frame, void hppa_pop_frame (void) { - register struct frame_info *frame = get_current_frame (); - register CORE_ADDR fp, npc, target_pc; - register int regnum; + struct frame_info *frame = get_current_frame (); + CORE_ADDR fp, npc, target_pc; + int regnum; CORE_ADDR *fsr; double freg_buffer; @@ -2070,7 +2070,7 @@ hppa_push_arguments (int nargs, struct value **args, CORE_ADDR sp, struct value * hppa_value_returned_from_stack (register struct type *valtype, CORE_ADDR addr) { - register struct value *val; + struct value *val; val = allocate_value (valtype); CHECK_TYPEDEF (valtype); @@ -2770,7 +2770,7 @@ pa_register_look_aside (char *raw_regs, int regnum, long *raw_val) int regaddr; unsigned int offset; - register int i; + int i; int start; diff --git a/gdb/hppab-nat.c b/gdb/hppab-nat.c index dc3e6b6fb9c..c8b561d667a 100644 --- a/gdb/hppab-nat.c +++ b/gdb/hppab-nat.c @@ -54,9 +54,9 @@ static void fetch_register (int regno) { - register unsigned int regaddr; + unsigned int regaddr; char buf[MAX_REGISTER_SIZE]; - register int i; + int i; /* Offset of registers within the u area. */ unsigned int offset; @@ -104,9 +104,9 @@ fetch_inferior_registers (int regno) void store_inferior_registers (int regno) { - register unsigned int regaddr; + unsigned int regaddr; char buf[80]; - register int i; + int i; unsigned int offset = U_REGS_OFFSET; int scratch; diff --git a/gdb/hppah-nat.c b/gdb/hppah-nat.c index 380a901e982..35395e71ad7 100644 --- a/gdb/hppah-nat.c +++ b/gdb/hppah-nat.c @@ -64,9 +64,9 @@ fetch_inferior_registers (int regno) void store_inferior_registers (int regno) { - register unsigned int regaddr; + unsigned int regaddr; char buf[80]; - register int i; + int i; unsigned int offset = U_REGS_OFFSET; int scratch; @@ -282,11 +282,11 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, struct mem_attrib *mem, struct target_ops *target) { - register int i; + int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & - (CORE_ADDR)(sizeof (int)); + CORE_ADDR addr = memaddr & - (CORE_ADDR)(sizeof (int)); /* Round ending address up; get number of longwords that makes. */ - register int count + int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); /* Allocate buffer of that many longwords. @@ -297,7 +297,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, this (in effect) would pile up all those alloca requests until a call to alloca was made from a point higher than this routine in the call chain. */ - register int *buffer = (int *) xmalloc (count * sizeof (int)); + int *buffer = (int *) xmalloc (count * sizeof (int)); if (write) { diff --git a/gdb/hppam3-nat.c b/gdb/hppam3-nat.c index 349df39dfb3..79c7f83b406 100644 --- a/gdb/hppam3-nat.c +++ b/gdb/hppam3-nat.c @@ -81,7 +81,7 @@ store_inferior_registers (int regno) kern_return_t ret; thread_state_data_t state; unsigned int stateCnt = TRACE_FLAVOR_SIZE; - register int index; + int index; if (!MACH_PORT_VALID (current_thread)) error ("store inferior registers: Invalid thread"); diff --git a/gdb/hpread.c b/gdb/hpread.c index 3e2179aac3d..daa5d5e45e2 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -6203,9 +6203,9 @@ static int hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile, int report_nested) { - register int index; - register union dnttentry *dn_tmp; - register short depth = 0; + int index; + union dnttentry *dn_tmp; + short depth = 0; /****************************/ return 0; /****************************/ @@ -6248,7 +6248,7 @@ hpread_get_scope_depth (union dnttentry *dn_bufp, struct objfile *objfile, static void hpread_adjust_bitoffsets (struct type *type, int bits) { - register int i; + int i; /* This is done only for unions; caller had better check that it is an anonymous one. */ @@ -6285,7 +6285,7 @@ hpread_get_next_skip_over_anon_unions (int skip_fields, dnttpointer field, struct objfile *objfile) { struct type *anon_type; - register int i; + int i; int bitoffset; char *name; diff --git a/gdb/ia64-aix-nat.c b/gdb/ia64-aix-nat.c index c94144c402f..83f9b6f2c34 100644 --- a/gdb/ia64-aix-nat.c +++ b/gdb/ia64-aix-nat.c @@ -135,7 +135,7 @@ fill_gregset (prgregset_t *gregsetp, int regno) void supply_fpregset (prfpregset_t *fpregsetp) { - register int regi; + int regi; for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++) supply_register (regi, diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index dacb6720bd4..0d29ce40f81 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -441,7 +441,7 @@ fill_gregset (gregset_t *gregsetp, int regno) void supply_fpregset (fpregset_t *fpregsetp) { - register int regi; + int regi; char *from; for (regi = IA64_FR0_REGNUM; regi <= IA64_FR127_REGNUM; regi++) diff --git a/gdb/infcall.c b/gdb/infcall.c index 02cd92d9da8..926eaf324c9 100644 --- a/gdb/infcall.c +++ b/gdb/infcall.c @@ -84,8 +84,8 @@ static struct value * value_arg_coerce (struct value *arg, struct type *param_type, int is_prototyped) { - register struct type *arg_type = check_typedef (VALUE_TYPE (arg)); - register struct type *type + struct type *arg_type = check_typedef (VALUE_TYPE (arg)); + struct type *type = param_type ? check_typedef (param_type) : arg_type; switch (TYPE_CODE (type)) @@ -161,8 +161,8 @@ value_arg_coerce (struct value *arg, struct type *param_type, CORE_ADDR find_function_addr (struct value *function, struct type **retval_type) { - register struct type *ftype = check_typedef (VALUE_TYPE (function)); - register enum type_code code = TYPE_CODE (ftype); + struct type *ftype = check_typedef (VALUE_TYPE (function)); + enum type_code code = TYPE_CODE (ftype); struct type *value_type; CORE_ADDR funaddr; @@ -375,7 +375,7 @@ push_dummy_code (struct gdbarch *gdbarch, struct value * call_function_by_hand (struct value *function, int nargs, struct value **args) { - register CORE_ADDR sp; + CORE_ADDR sp; CORE_ADDR dummy_addr; struct type *value_type; unsigned char struct_return; diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 4fcfd88b490..55f98c38ff1 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -584,7 +584,7 @@ disable_longjmp_breakpoint_cleanup (void *ignore) static void step_1 (int skip_subroutines, int single_inst, char *count_string) { - register int count = 1; + int count = 1; struct frame_info *frame; struct cleanup *cleanups = 0; int async_exec = 0; @@ -806,7 +806,7 @@ which has no line number information.\n", name); static void jump_command (char *arg, int from_tty) { - register CORE_ADDR addr; + CORE_ADDR addr; struct symtabs_and_lines sals; struct symtab_and_line sal; struct symbol *fn; @@ -1121,7 +1121,7 @@ print_return_value (int structure_return, struct type *value_type) void finish_command_continuation (struct continuation_arg *arg) { - register struct symbol *function; + struct symbol *function; struct breakpoint *breakpoint; struct cleanup *cleanups; @@ -1164,8 +1164,8 @@ static void finish_command (char *arg, int from_tty) { struct symtab_and_line sal; - register struct frame_info *frame; - register struct symbol *function; + struct frame_info *frame; + struct symbol *function; struct breakpoint *breakpoint; struct cleanup *old_chain; struct continuation_arg *arg1, *arg2, *arg3; @@ -1366,7 +1366,7 @@ environment_info (char *var, int from_tty) static void set_environment_command (char *arg, int from_tty) { - register char *p, *val, *var; + char *p, *val, *var; int nullset = 0; if (arg == 0) @@ -1604,7 +1604,7 @@ void registers_info (char *addr_exp, int fpregs) { int regnum, numregs; - register char *end; + char *end; if (!target_has_registers) error ("The program has no registers now."); diff --git a/gdb/inflow.c b/gdb/inflow.c index 2a41f57982f..b860af70a83 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -515,7 +515,7 @@ new_tty_prefork (char *ttyname) void new_tty (void) { - register int tty; + int tty; if (inferior_thisrun_terminal == 0) return; diff --git a/gdb/infptrace.c b/gdb/infptrace.c index 5df9f6d9507..1286b752fc9 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -359,7 +359,7 @@ fetch_register (int regno) /* This isn't really an address. But ptrace thinks of it as one. */ CORE_ADDR regaddr; char mess[128]; /* For messages */ - register int i; + int i; unsigned int offset; /* Offset of registers within the u area. */ char buf[MAX_REGISTER_SIZE]; int tid; @@ -423,7 +423,7 @@ store_register (int regno) /* This isn't really an address. But ptrace thinks of it as one. */ CORE_ADDR regaddr; char mess[128]; /* For messages */ - register int i; + int i; unsigned int offset; /* Offset of registers within the u area. */ int tid; char buf[MAX_REGISTER_SIZE]; diff --git a/gdb/infrun.c b/gdb/infrun.c index ff956d3db47..f4ab6320841 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3915,8 +3915,8 @@ build_infrun (void) void _initialize_infrun (void) { - register int i; - register int numsigs; + int i; + int numsigs; struct cmd_list_element *c; register_gdbarch_swap (&stop_registers, sizeof (stop_registers), NULL); diff --git a/gdb/infttrace.c b/gdb/infttrace.c index e0238e8bc55..3f76edbbd1a 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -4836,18 +4836,18 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, struct mem_attrib *attrib, struct target_ops *target) { - register int i; + int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (TTRACE_XFER_TYPE); + CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (TTRACE_XFER_TYPE); /* Round ending address up; get number of longwords that makes. */ - register int count + int count = (((memaddr + len) - addr) + sizeof (TTRACE_XFER_TYPE) - 1) / sizeof (TTRACE_XFER_TYPE); /* Allocate buffer of that many longwords. */ /* FIXME (alloca): This code, cloned from infptrace.c, is unsafe because it uses alloca to allocate a buffer of arbitrary size. For very large xfers, this could crash GDB's stack. */ - register TTRACE_XFER_TYPE *buffer + TTRACE_XFER_TYPE *buffer = (TTRACE_XFER_TYPE *) alloca (count * sizeof (TTRACE_XFER_TYPE)); if (write) diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index bb90da51f88..c6f3bda63f4 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -53,8 +53,8 @@ static void fetch_core_registers (char *, unsigned int, int, CORE_ADDR); void supply_gregset (gregset_t *gregsetp) { - register int regi; - register greg_t *regp = &(*gregsetp)[0]; + int regi; + greg_t *regp = &(*gregsetp)[0]; int gregoff = sizeof (greg_t) - MIPS_REGSIZE; static char zerobuf[32] = {0}; @@ -74,7 +74,7 @@ void fill_gregset (gregset_t *gregsetp, int regno) { int regi; - register greg_t *regp = &(*gregsetp)[0]; + greg_t *regp = &(*gregsetp)[0]; /* Under Irix6, if GDB is built with N32 ABI and is debugging an O32 executable, we have to sign extend the registers to 64 bits before @@ -118,7 +118,7 @@ fill_gregset (gregset_t *gregsetp, int regno) void supply_fpregset (fpregset_t *fpregsetp) { - register int regi; + int regi; static char zerobuf[32] = {0}; /* FIXME, this is wrong for the N32 ABI which has 64 bit FP regs. */ diff --git a/gdb/jv-typeprint.c b/gdb/jv-typeprint.c index 0d4c1876486..18bfc32b385 100644 --- a/gdb/jv-typeprint.c +++ b/gdb/jv-typeprint.c @@ -86,8 +86,8 @@ static void java_type_print_base (struct type *type, struct ui_file *stream, int show, int level) { - register int i; - register int len; + int i; + int len; char *mangled_name; char *demangled_name; QUIT; diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c index ef258475fde..1875eefb495 100644 --- a/gdb/jv-valprint.c +++ b/gdb/jv-valprint.c @@ -457,7 +457,7 @@ java_val_print (struct type *type, char *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int format, int deref_ref, int recurse, enum val_prettyprint pretty) { - register unsigned int i = 0; /* Number of characters printed */ + unsigned int i = 0; /* Number of characters printed */ struct type *target_type; CORE_ADDR addr; diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index c6cbd5bbaf8..72c3b86334e 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c @@ -948,8 +948,8 @@ m68k_unwind_dummy_id (struct gdbarch *gdbarch, struct frame_info *next_frame) void supply_gregset (gregset_t *gregsetp) { - register int regi; - register greg_t *regp = (greg_t *) gregsetp; + int regi; + greg_t *regp = (greg_t *) gregsetp; for (regi = 0; regi < R_PC; regi++) { @@ -962,8 +962,8 @@ supply_gregset (gregset_t *gregsetp) void fill_gregset (gregset_t *gregsetp, int regno) { - register int regi; - register greg_t *regp = (greg_t *) gregsetp; + int regi; + greg_t *regp = (greg_t *) gregsetp; for (regi = 0; regi < R_PC; regi++) { @@ -985,7 +985,7 @@ fill_gregset (gregset_t *gregsetp, int regno) void supply_fpregset (fpregset_t *fpregsetp) { - register int regi; + int regi; char *from; for (regi = FP0_REGNUM; regi < M68K_FPC_REGNUM; regi++) diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c index cfe9dab59a1..e51d20fa462 100644 --- a/gdb/m68klinux-nat.c +++ b/gdb/m68klinux-nat.c @@ -133,7 +133,7 @@ fetch_register (int regno) /* This isn't really an address. But ptrace thinks of it as one. */ CORE_ADDR regaddr; char mess[128]; /* For messages */ - register int i; + int i; unsigned int offset; /* Offset of registers within the u area. */ char buf[MAX_REGISTER_SIZE]; int tid; @@ -198,7 +198,7 @@ store_register (int regno) /* This isn't really an address. But ptrace thinks of it as one. */ CORE_ADDR regaddr; char mess[128]; /* For messages */ - register int i; + int i; unsigned int offset; /* Offset of registers within the u area. */ int tid; char buf[MAX_REGISTER_SIZE]; diff --git a/gdb/main.c b/gdb/main.c index 5a06017ac88..2d552c09b12 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -150,7 +150,7 @@ captured_main (void *data) struct stat homebuf, cwdbuf; char *homedir, *homeinit; - register int i; + int i; long time_at_startup = get_run_time (); diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 00c7ba60c97..78653bb72f8 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -373,7 +373,7 @@ static FDR * get_rfd (int cf, int rf) { FDR *fdrs; - register FDR *f; + FDR *f; RFDT rfd; fdrs = debug_info->fdr; @@ -558,7 +558,7 @@ static struct mdebug_pending * is_pending_symbol (FDR *fh, char *sh) { int f_idx = fh - debug_info->fdr; - register struct mdebug_pending *p; + struct mdebug_pending *p; /* Linear search is ok, list is typically no more than 10 deep */ for (p = pending_list[f_idx]; p; p = p->next) @@ -2228,7 +2228,7 @@ parse_partial_symbols (struct objfile *objfile) char *ext_out; char *ext_out_end; EXTR *ext_block; - register EXTR *ext_in; + EXTR *ext_in; EXTR *ext_in_end; SYMR sh; struct partial_symtab *pst; @@ -4527,7 +4527,7 @@ add_line (struct linetable *lt, int lineno, CORE_ADDR adr, int last) static int compare_blocks (const void *arg1, const void *arg2) { - register int addr_diff; + int addr_diff; struct block **b1 = (struct block **) arg1; struct block **b2 = (struct block **) arg2; diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 319865f6faf..66c6d9d6091 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -599,8 +599,8 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address, asection *bfd_section, struct objfile *objfile) { - register struct msym_bunch *new; - register struct minimal_symbol *msymbol; + struct msym_bunch *new; + struct minimal_symbol *msymbol; if (ms_type == mst_file_text) { @@ -661,8 +661,8 @@ prim_record_minimal_symbol_and_info (const char *name, CORE_ADDR address, static int compare_minimal_symbols (const void *fn1p, const void *fn2p) { - register const struct minimal_symbol *fn1; - register const struct minimal_symbol *fn2; + const struct minimal_symbol *fn1; + const struct minimal_symbol *fn2; fn1 = (const struct minimal_symbol *) fn1p; fn2 = (const struct minimal_symbol *) fn2p; @@ -703,7 +703,7 @@ compare_minimal_symbols (const void *fn1p, const void *fn2p) static void do_discard_minimal_symbols_cleanup (void *arg) { - register struct msym_bunch *next; + struct msym_bunch *next; while (msym_bunch != NULL) { @@ -847,12 +847,12 @@ build_minimal_symbol_hash_tables (struct objfile *objfile) void install_minimal_symbols (struct objfile *objfile) { - register int bindex; - register int mcount; - register struct msym_bunch *bunch; - register struct minimal_symbol *msymbols; + int bindex; + int mcount; + struct msym_bunch *bunch; + struct minimal_symbol *msymbols; int alloc_count; - register char leading_char; + char leading_char; if (msym_count > 0) { diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c index 93a15e54717..6321935a2df 100644 --- a/gdb/mips-linux-tdep.c +++ b/gdb/mips-linux-tdep.c @@ -191,7 +191,7 @@ fill_gregset (elf_gregset_t *gregsetp, int regno) void supply_fpregset (elf_fpregset_t *fpregsetp) { - register int regi; + int regi; char zerobuf[MAX_REGISTER_SIZE]; memset (zerobuf, 0, MAX_REGISTER_SIZE); @@ -466,7 +466,7 @@ mips64_fill_gregset (mips64_elf_gregset_t *gregsetp, int regno) static void mips64_supply_fpregset (mips64_elf_fpregset_t *fpregsetp) { - register int regi; + int regi; char zerobuf[MAX_REGISTER_SIZE]; memset (zerobuf, 0, MAX_REGISTER_SIZE); diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index fbd18c0b43f..0ab3fb1dd6b 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -72,9 +72,9 @@ static void fetch_core_registers (char *, unsigned, int, CORE_ADDR); void fetch_inferior_registers (int regno) { - register unsigned int regaddr; + unsigned int regaddr; char buf[MAX_REGISTER_SIZE]; - register int i; + int i; char zerobuf[MAX_REGISTER_SIZE]; memset (zerobuf, 0, MAX_REGISTER_SIZE); @@ -104,7 +104,7 @@ fetch_inferior_registers (int regno) void store_inferior_registers (int regno) { - register unsigned int regaddr; + unsigned int regaddr; char buf[80]; if (regno > 0) @@ -172,10 +172,10 @@ static void fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, int which, CORE_ADDR reg_addr) { - register int regno; - register unsigned int addr; + int regno; + unsigned int addr; int bad_reg = -1; - register reg_ptr = -reg_addr; /* Original u.u_ar0 is -reg_addr. */ + reg_ptr = -reg_addr; /* Original u.u_ar0 is -reg_addr. */ char zerobuf[MAX_REGISTER_SIZE]; memset (zerobuf, 0, MAX_REGISTER_SIZE); diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 49c38dcf6ed..254e377a5ec 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -3946,7 +3946,7 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr, static void mips_pop_frame (void) { - register int regnum; + int regnum; struct frame_info *frame = get_current_frame (); CORE_ADDR new_sp = get_frame_base (frame); mips_extra_func_info_t proc_desc; diff --git a/gdb/mipsread.c b/gdb/mipsread.c index e40bf54173c..2ea18d712d5 100644 --- a/gdb/mipsread.c +++ b/gdb/mipsread.c @@ -193,7 +193,7 @@ struct alphacoff_dynsecinfo static void alphacoff_locate_sections (bfd *ignore_abfd, asection *sectp, void *sip) { - register struct alphacoff_dynsecinfo *si; + struct alphacoff_dynsecinfo *si; si = (struct alphacoff_dynsecinfo *) sip; diff --git a/gdb/mipsv4-nat.c b/gdb/mipsv4-nat.c index d29bc995d9a..30ad06a7ffc 100644 --- a/gdb/mipsv4-nat.c +++ b/gdb/mipsv4-nat.c @@ -45,8 +45,8 @@ void supply_gregset (gregset_t *gregsetp) { - register int regi; - register greg_t *regp = &(*gregsetp)[0]; + int regi; + greg_t *regp = &(*gregsetp)[0]; char zerobuf[MAX_REGISTER_SIZE]; memset (zerobuf, 0, MAX_REGISTER_SIZE); @@ -71,7 +71,7 @@ void fill_gregset (gregset_t *gregsetp, int regno) { int regi; - register greg_t *regp = &(*gregsetp)[0]; + greg_t *regp = &(*gregsetp)[0]; for (regi = 0; regi <= 32; regi++) if ((regno == -1) || (regno == regi)) @@ -101,7 +101,7 @@ fill_gregset (gregset_t *gregsetp, int regno) void supply_fpregset (fpregset_t *fpregsetp) { - register int regi; + int regi; char zerobuf[MAX_REGISTER_SIZE]; memset (zerobuf, 0, MAX_REGISTER_SIZE); diff --git a/gdb/ns32k-tdep.c b/gdb/ns32k-tdep.c index f880bd3d9e8..8809ee439fd 100644 --- a/gdb/ns32k-tdep.c +++ b/gdb/ns32k-tdep.c @@ -147,7 +147,7 @@ ns32k_saved_pc_after_call (struct frame_info *frame) static CORE_ADDR umax_skip_prologue (CORE_ADDR pc) { - register unsigned char op = read_memory_integer (pc, 1); + unsigned char op = read_memory_integer (pc, 1); if (op == 0x82) { op = read_memory_integer (pc + 2, 1); diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 003737208fd..ce927fc8746 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -1098,7 +1098,7 @@ in_plt_section (CORE_ADDR pc, char *name) int is_in_import_list (char *name, struct objfile *objfile) { - register int i; + int i; if (!objfile || !name || !*name) return 0; diff --git a/gdb/p-typeprint.c b/gdb/p-typeprint.c index 286f22d95a5..99d67e27577 100644 --- a/gdb/p-typeprint.c +++ b/gdb/p-typeprint.c @@ -50,7 +50,7 @@ void pascal_print_type (struct type *type, char *varstring, struct ui_file *stream, int show, int level) { - register enum type_code code; + enum type_code code; int demangled_args; code = TYPE_CODE (type); @@ -440,9 +440,9 @@ void pascal_type_print_base (struct type *type, struct ui_file *stream, int show, int level) { - register int i; - register int len; - register int lastval; + int i; + int len; + int lastval; enum { s_none, s_public, s_private, s_protected diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 718d28731d3..9abba87dfdc 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -60,7 +60,7 @@ pascal_val_print (struct type *type, char *valaddr, int embedded_offset, CORE_ADDR address, struct ui_file *stream, int format, int deref_ref, int recurse, enum val_prettyprint pretty) { - register unsigned int i = 0; /* Number of characters printed */ + unsigned int i = 0; /* Number of characters printed */ unsigned len; struct type *elttype; unsigned eltlen; @@ -1055,7 +1055,7 @@ pascal_object_print_class_member (char *valaddr, struct type *domain, print it. */ int extra = 0; int bits = 0; - register unsigned int i; + unsigned int i; unsigned len = TYPE_NFIELDS (domain); /* @@ Make VAL into bit offset */ LONGEST val = unpack_long (builtin_type_int, valaddr) << 3; diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index d0bff2ef7bd..be278f91d66 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -207,7 +207,7 @@ fetch_register (int tid, int regno) { /* This isn't really an address. But ptrace thinks of it as one. */ char mess[128]; /* For messages */ - register int i; + int i; unsigned int offset; /* Offset of registers within the u area. */ char buf[MAX_REGISTER_SIZE]; CORE_ADDR regaddr = ppc_register_u_addr (regno); @@ -367,7 +367,7 @@ store_register (int tid, int regno) /* This isn't really an address. But ptrace thinks of it as one. */ CORE_ADDR regaddr = ppc_register_u_addr (regno); char mess[128]; /* For messages */ - register int i; + int i; unsigned int offset; /* Offset of registers within the u area. */ char buf[MAX_REGISTER_SIZE]; diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 3838f5ded51..a548f92ecf0 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -190,7 +190,7 @@ static struct format_data decode_format (char **string_ptr, int oformat, int osize) { struct format_data val; - register char *p = *string_ptr; + char *p = *string_ptr; val.format = '?'; val.size = '?'; @@ -773,12 +773,12 @@ static struct type *examine_g_type; static void do_examine (struct format_data fmt, CORE_ADDR addr, asection *sect) { - register char format = 0; - register char size; - register int count = 1; + char format = 0; + char size; + int count = 1; struct type *val_type = NULL; - register int i; - register int maxelts; + int i; + int maxelts; format = fmt.format; size = fmt.size; @@ -873,8 +873,8 @@ static void print_command_1 (char *exp, int inspect, int voidprint) { struct expression *expr; - register struct cleanup *old_chain = 0; - register char format = 0; + struct cleanup *old_chain = 0; + char format = 0; struct value *val; struct format_data fmt; int cleanup = 0; @@ -972,8 +972,8 @@ void output_command (char *exp, int from_tty) { struct expression *expr; - register struct cleanup *old_chain; - register char format = 0; + struct cleanup *old_chain; + char format = 0; struct value *val; struct format_data fmt; @@ -1007,7 +1007,7 @@ static void set_command (char *exp, int from_tty) { struct expression *expr = parse_expression (exp); - register struct cleanup *old_chain = + struct cleanup *old_chain = make_cleanup (free_current_contents, &expr); evaluate_expression (expr); do_cleanups (old_chain); @@ -1062,10 +1062,10 @@ sym_info (char *arg, int from_tty) static void address_info (char *exp, int from_tty) { - register struct symbol *sym; - register struct minimal_symbol *msymbol; - register long val; - register long basereg; + struct symbol *sym; + struct minimal_symbol *msymbol; + long val; + long basereg; asection *section; CORE_ADDR load_addr; int is_a_field_of_this; /* C++: lookup_symbol sets this to nonzero @@ -1355,8 +1355,8 @@ static void display_command (char *exp, int from_tty) { struct format_data fmt; - register struct expression *expr; - register struct display *new; + struct expression *expr; + struct display *new; int display_it = 1; #if defined(TUI) @@ -1424,7 +1424,7 @@ free_display (struct display *d) void clear_displays (void) { - register struct display *d; + struct display *d; while ((d = display_chain) != NULL) { @@ -1439,7 +1439,7 @@ clear_displays (void) static void delete_display (int num) { - register struct display *d1, *d; + struct display *d1, *d; if (!display_chain) error ("No display number %d.", num); @@ -1471,9 +1471,9 @@ delete_display (int num) static void undisplay_command (char *args, int from_tty) { - register char *p = args; - register char *p1; - register int num; + char *p = args; + char *p1; + int num; if (args == 0) { @@ -1594,7 +1594,7 @@ do_one_display (struct display *d) void do_displays (void) { - register struct display *d; + struct display *d; for (d = display_chain; d; d = d->next) do_one_display (d); @@ -1606,7 +1606,7 @@ do_displays (void) void disable_display (int num) { - register struct display *d; + struct display *d; for (d = display_chain; d; d = d->next) if (d->number == num) @@ -1632,7 +1632,7 @@ disable_current_display (void) static void display_info (char *ignore, int from_tty) { - register struct display *d; + struct display *d; if (!display_chain) printf_unfiltered ("There are no auto-display expressions now.\n"); @@ -1659,10 +1659,10 @@ Num Enb Expression\n"); static void enable_display (char *args, int from_tty) { - register char *p = args; - register char *p1; - register int num; - register struct display *d; + char *p = args; + char *p1; + int num; + struct display *d; if (p == 0) { @@ -1698,9 +1698,9 @@ enable_display (char *args, int from_tty) static void disable_display_command (char *args, int from_tty) { - register char *p = args; - register char *p1; - register struct display *d; + char *p = args; + char *p1; + struct display *d; if (p == 0) { @@ -1741,8 +1741,8 @@ print_variable_value (struct symbol *var, struct frame_info *frame, static void printf_command (char *arg, int from_tty) { - register char *f = NULL; - register char *s = arg; + char *f = NULL; + char *s = arg; char *string = NULL; struct value **val_args; char *substrings; diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 372ecf74347..3dc3601443b 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -816,9 +816,9 @@ mips_receive_trailer (unsigned char *trlr, int *pgarbage, int *pch, int timeout) static int mips_cksum (const unsigned char *hdr, const unsigned char *data, int len) { - register const unsigned char *p; - register int c; - register int cksum; + const unsigned char *p; + int c; + int cksum; cksum = 0; @@ -843,7 +843,7 @@ mips_send_packet (const char *s, int get_ack) { /* unsigned */ int len; unsigned char *packet; - register int cksum; + int cksum; int try; len = strlen (s); diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c index d21025c78a9..bde52043981 100644 --- a/gdb/remote-vx.c +++ b/gdb/remote-vx.c @@ -257,9 +257,9 @@ vx_create_inferior (char *exec_file, char *args, char **env) static void parse_args (register char *arg_string, arg_array *arg_struct) { - register int arg_count = 0; /* number of arguments */ - register int arg_index = 0; - register char *p0; + int arg_count = 0; /* number of arguments */ + int arg_index = 0; + char *p0; memset ((char *) arg_struct, '\0', sizeof (arg_array)); @@ -309,7 +309,7 @@ skip_white_space (register char *p) static char * find_white_space (register char *p) { - register int c; + int c; while ((c = *p) != ' ' && c != '\t' && c) { @@ -934,7 +934,7 @@ sleep_ms (long ms) static ptid_t vx_wait (ptid_t ptid_to_wait_for, struct target_waitstatus *status) { - register int pid; + int pid; RDB_EVENT rdbEvent; int quit_failed; diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index ea2457040aa..0c7c122f58b 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -646,7 +646,7 @@ vmap_secs (struct vmap *vp, LdInfo *ldi, int arch64) static void vmap_symtab (struct vmap *vp) { - register struct objfile *objfile; + struct objfile *objfile; struct section_offsets *new_offsets; int i; @@ -720,7 +720,7 @@ static struct vmap * add_vmap (LdInfo *ldi) { bfd *abfd, *last; - register char *mem, *objname, *filename; + char *mem, *objname, *filename; struct objfile *obj; struct vmap *vp; int fd; @@ -803,7 +803,7 @@ static void vmap_ldinfo (LdInfo *ldi) { struct stat ii, vi; - register struct vmap *vp; + struct vmap *vp; int got_one, retried; int got_exec_file = 0; uint next; diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 8bce98c9c90..e8e11e3c541 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -1463,7 +1463,7 @@ rs6000_in_solib_return_trampoline (CORE_ADDR pc, char *name) CORE_ADDR rs6000_skip_trampoline_code (CORE_ADDR pc) { - register unsigned int ii, op; + unsigned int ii, op; int rel; CORE_ADDR solib_target_pc; struct minimal_symbol *msymbol; diff --git a/gdb/scm-exp.c b/gdb/scm-exp.c index 7464ecfc6bf..ee7f21d9616 100644 --- a/gdb/scm-exp.c +++ b/gdb/scm-exp.c @@ -237,7 +237,7 @@ scm_read_token (int c, int weird) static int scm_skip_ws (void) { - register int c; + int c; while (1) switch ((c = *lexptr++)) { diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 04adbb87af0..6ec46a1a2b8 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -858,9 +858,9 @@ sh_frame_saved_pc (struct frame_info *frame) static void sh_pop_frame (void) { - register struct frame_info *frame = get_current_frame (); - register CORE_ADDR fp; - register int regnum; + struct frame_info *frame = get_current_frame (); + CORE_ADDR fp; + int regnum; if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), get_frame_base (frame), diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index 0a3fd53a99b..55147fe738d 100644 --- a/gdb/sh64-tdep.c +++ b/gdb/sh64-tdep.c @@ -1366,9 +1366,9 @@ sh_frame_saved_pc (struct frame_info *frame) static void sh64_pop_frame (void) { - register struct frame_info *frame = get_current_frame (); - register CORE_ADDR fp; - register int regnum; + struct frame_info *frame = get_current_frame (); + CORE_ADDR fp; + int regnum; struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); int media_mode = pc_is_isa32 (get_frame_pc (frame)); diff --git a/gdb/solib.c b/gdb/solib.c index 82df65a6d0b..f77993c574e 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -338,7 +338,7 @@ free_so (struct so_list *so) static int symbol_add_stub (void *arg) { - register struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */ + struct so_list *so = (struct so_list *) arg; /* catch_errs bogon */ struct section_addr_info *sap; /* Have we already loaded this shared object? */ @@ -627,7 +627,7 @@ solib_add (char *pattern, int from_tty, struct target_ops *target, int readsyms) static void info_sharedlibrary_command (char *ignore, int from_tty) { - register struct so_list *so = NULL; /* link map state variable */ + struct so_list *so = NULL; /* link map state variable */ int header_done = 0; int addr_width; char *addr_fmt; @@ -709,7 +709,7 @@ info_sharedlibrary_command (char *ignore, int from_tty) char * solib_address (CORE_ADDR address) { - register struct so_list *so = 0; /* link map state variable */ + struct so_list *so = 0; /* link map state variable */ for (so = so_list_head; so; so = so->next) { diff --git a/gdb/somread.c b/gdb/somread.c index e3df6e167a1..971fea25f73 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -477,9 +477,9 @@ init_import_symbols (struct objfile *objfile) unsigned int string_table; unsigned int string_table_size; char *string_buffer; - register int i; - register int j; - register int k; + int i; + int j; + int k; asection *text_section; /* section handle */ unsigned int dl_header[12]; /* SOM executable header */ @@ -597,9 +597,9 @@ init_export_symbols (struct objfile *objfile) unsigned int string_table; unsigned int string_table_size; char *string_buffer; - register int i; - register int j; - register int k; + int i; + int j; + int k; asection *text_section; /* section handle */ unsigned int dl_header[12]; /* SOM executable header */ diff --git a/gdb/source.c b/gdb/source.c index 749617bb578..c34853ff2f2 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -317,8 +317,8 @@ show_directories (char *ignore, int from_tty) void forget_cached_source_info (void) { - register struct symtab *s; - register struct objfile *objfile; + struct symtab *s; + struct objfile *objfile; struct partial_symtab *pst; for (objfile = object_files; objfile != NULL; objfile = objfile->next) @@ -594,7 +594,7 @@ add_path (char *dirname, char **which_path, int parse_separators) static void source_info (char *ignore, int from_tty) { - register struct symtab *s = current_source_symtab; + struct symtab *s = current_source_symtab; if (!s) { @@ -660,11 +660,11 @@ openp (const char *path, int try_cwd_first, const char *string, int mode, int prot, char **filename_opened) { - register int fd; - register char *filename; + int fd; + char *filename; const char *p; const char *p1; - register int len; + int len; int alloclen; if (!path) @@ -907,7 +907,7 @@ void find_source_lines (struct symtab *s, int desc) { struct stat st; - register char *data, *p, *end; + char *data, *p, *end; int nlines = 0; int lines_allocated = 1000; int *line_charpos; @@ -1021,8 +1021,8 @@ source_line_charpos (struct symtab *s, int line) int source_charpos_line (register struct symtab *s, register int chr) { - register int line = 0; - register int *lnp; + int line = 0; + int *lnp; if (s == 0 || s->line_charpos == 0) return 0; @@ -1049,7 +1049,7 @@ source_charpos_line (register struct symtab *s, register int chr) static int get_filename_and_charpos (struct symtab *s, char **fullname) { - register int desc, linenums_changed = 0; + int desc, linenums_changed = 0; desc = open_source_file (s); if (desc < 0) @@ -1107,9 +1107,9 @@ static void print_source_lines_base (struct symtab *s, int line, int stopline, static void print_source_lines_base (struct symtab *s, int line, int stopline, int noerror) { - register int c; - register int desc; - register FILE *stream; + int c; + int desc; + FILE *stream; int nlines = stopline - line; /* Regardless of whether we can open the file, set current_source_symtab. */ @@ -1351,9 +1351,9 @@ line_info (char *arg, int from_tty) static void forward_search_command (char *regex, int from_tty) { - register int c; - register int desc; - register FILE *stream; + int c; + int desc; + FILE *stream; int line; char *msg; @@ -1447,9 +1447,9 @@ forward_search_command (char *regex, int from_tty) static void reverse_search_command (char *regex, int from_tty) { - register int c; - register int desc; - register FILE *stream; + int c; + int desc; + FILE *stream; int line; char *msg; diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 3c98a7473b7..6d1a9269cb3 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -1093,7 +1093,7 @@ static void sparc_frame_find_saved_regs (struct frame_info *, CORE_ADDR *); static void sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr) { - register int regnum; + int regnum; CORE_ADDR frame_addr = get_frame_base (fi); gdb_assert (fi != NULL); @@ -1210,8 +1210,8 @@ sparc_frame_find_saved_regs (struct frame_info *fi, CORE_ADDR *saved_regs_addr) void sparc_pop_frame (void) { - register struct frame_info *frame = get_current_frame (); - register CORE_ADDR pc; + struct frame_info *frame = get_current_frame (); + CORE_ADDR pc; CORE_ADDR *fsr; char *raw_buffer; int regnum; @@ -1662,7 +1662,7 @@ fill_gregset (gdb_gregset_t *gregsetp, int regno) void supply_fpregset (gdb_fpregset_t *fpregsetp) { - register int regi; + int regi; char *from; if (!SPARC_HAS_FPU) diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 1629782d979..be10dc25ffd 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -255,11 +255,11 @@ static struct symbol *current_symbol = NULL; static struct type ** dbx_lookup_type (int typenums[2]) { - register int filenum = typenums[0]; - register int index = typenums[1]; + int filenum = typenums[0]; + int index = typenums[1]; unsigned old_len; - register int real_filenum; - register struct header_file *f; + int real_filenum; + struct header_file *f; int f_orig_length; if (filenum == -1) /* -1,-1 is for temporary types. */ @@ -356,7 +356,7 @@ dbx_lookup_type (int typenums[2]) static struct type * dbx_alloc_type (int typenums[2], struct objfile *objfile) { - register struct type **type_addr; + struct type **type_addr; if (typenums[0] == -1) { @@ -1216,11 +1216,11 @@ struct symbol * define_symbol (CORE_ADDR valu, char *string, int desc, int type, struct objfile *objfile) { - register struct symbol *sym; + struct symbol *sym; char *p = (char *) find_name_end (string); int deftype; int synonym = 0; - register int i; + int i; /* We would like to eliminate nameless symbols, but keep their types. E.g. stab entry ":t10=*2" should produce a type 10, which is a pointer @@ -2266,7 +2266,7 @@ error_type (char **pp, struct objfile *objfile) static struct type * read_type (register char **pp, struct objfile *objfile) { - register struct type *type = 0; + struct type *type = 0; struct type *type1; int typenums[2]; char type_descriptor; @@ -3004,7 +3004,7 @@ read_member_functions (struct field_info *fip, char **pp, struct type *type, struct next_fnfieldlist *new_fnlist; struct next_fnfield *new_sublist; char *main_fn_name; - register char *p; + char *p; /* Process each list until we find something that is not a member function or find the end of the functions. */ @@ -3465,7 +3465,7 @@ static int read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type, struct objfile *objfile) { - register char *p; + char *p; char *name; char cpp_abbrev; struct type *context; @@ -3727,7 +3727,7 @@ static int read_struct_fields (struct field_info *fip, char **pp, struct type *type, struct objfile *objfile) { - register char *p; + char *p; struct nextfield *new; /* We better set p right now, in case there are no fields at all... */ @@ -3948,7 +3948,7 @@ static int read_tilde_fields (struct field_info *fip, char **pp, struct type *type, struct objfile *objfile) { - register char *p; + char *p; STABS_CONTINUE (pp, objfile); @@ -4029,7 +4029,7 @@ read_tilde_fields (struct field_info *fip, char **pp, struct type *type, static int attach_fn_fields_to_type (struct field_info *fip, register struct type *type) { - register int n; + int n; for (n = TYPE_NFN_FIELDS (type); fip->fnlist != NULL; @@ -4181,9 +4181,9 @@ static int attach_fields_to_type (struct field_info *fip, register struct type *type, struct objfile *objfile) { - register int nfields = 0; - register int non_public_fields = 0; - register struct nextfield *scan; + int nfields = 0; + int non_public_fields = 0; + struct nextfield *scan; /* Count up the number of fields that we have, as well as taking note of whether or not there are any non-public fields, which requires us to @@ -4448,10 +4448,10 @@ static struct type * read_enum_type (register char **pp, register struct type *type, struct objfile *objfile) { - register char *p; + char *p; char *name; - register long n; - register struct symbol *sym; + long n; + struct symbol *sym; int nsyms = 0; struct pending **symlist; struct pending *osyms, *syms; diff --git a/gdb/stack.c b/gdb/stack.c index d3e8ac916af..4015099e715 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -213,7 +213,7 @@ print_frame_args (struct symbol *func, struct frame_info *fi, int num, struct block *b = NULL; int first = 1; struct dict_iterator iter; - register struct symbol *sym; + struct symbol *sym; struct value *val; /* Offset of next stack argument beyond the one we have seen that is at the highest offset. @@ -538,7 +538,7 @@ print_frame (struct frame_info *fi, struct symtab_and_line sal) { struct symbol *func; - register char *funname = 0; + char *funname = 0; enum language funlang = language_unknown; struct ui_stream *stb; struct cleanup *old_chain; @@ -1139,10 +1139,10 @@ static void backtrace_command_1 (char *count_exp, int show_locals, int from_tty) { struct frame_info *fi; - register int count; - register int i; - register struct frame_info *trailing; - register int trailing_level; + int count; + int i; + struct frame_info *trailing; + int trailing_level; if (!target_has_stack) error ("No stack."); @@ -1350,8 +1350,8 @@ print_block_frame_labels (struct block *b, int *have_default, register struct ui_file *stream) { struct dict_iterator iter; - register struct symbol *sym; - register int values_printed = 0; + struct symbol *sym; + int values_printed = 0; ALL_BLOCK_SYMBOLS (b, iter, sym) { @@ -1391,8 +1391,8 @@ static void print_frame_local_vars (register struct frame_info *fi, register int num_tabs, register struct ui_file *stream) { - register struct block *block = get_frame_block (fi, 0); - register int values_printed = 0; + struct block *block = get_frame_block (fi, 0); + int values_printed = 0; if (block == 0) { @@ -1424,9 +1424,9 @@ static void print_frame_label_vars (register struct frame_info *fi, int this_level_only, register struct ui_file *stream) { - register struct blockvector *bl; - register struct block *block = get_frame_block (fi, 0); - register int values_printed = 0; + struct blockvector *bl; + struct block *block = get_frame_block (fi, 0); + int values_printed = 0; int index, have_default = 0; char *blocks_printed; CORE_ADDR pc = get_frame_pc (fi); @@ -1530,10 +1530,10 @@ print_frame_arg_vars (register struct frame_info *fi, register struct ui_file *stream) { struct symbol *func = get_frame_function (fi); - register struct block *b; + struct block *b; struct dict_iterator iter; - register struct symbol *sym, *sym2; - register int values_printed = 0; + struct symbol *sym, *sym2; + int values_printed = 0; if (func == 0) { @@ -1660,8 +1660,8 @@ struct frame_info * find_relative_frame (register struct frame_info *frame, register int *level_offset_ptr) { - register struct frame_info *prev; - register struct frame_info *frame1; + struct frame_info *prev; + struct frame_info *frame1; /* Going up is simple: just do get_prev_frame enough times or until initial frame is reached. */ @@ -1740,7 +1740,7 @@ current_frame_command (char *level_exp, int from_tty) static void up_silently_base (char *count_exp) { - register struct frame_info *fi; + struct frame_info *fi; int count = 1, count1; if (count_exp) count = parse_and_eval_long (count_exp); @@ -1777,7 +1777,7 @@ up_command (char *count_exp, int from_tty) static void down_silently_base (char *count_exp) { - register struct frame_info *frame; + struct frame_info *frame; int count = -1, count1; if (count_exp) count = -parse_and_eval_long (count_exp); @@ -1981,7 +1981,7 @@ func_command (char *arg, int from_tty) enum language get_frame_language (void) { - register struct symtab *s; + struct symtab *s; enum language flang; /* The language of the current frame */ if (deprecated_selected_frame) diff --git a/gdb/standalone.c b/gdb/standalone.c index 6ae8f5398b8..cddd5b9f7d2 100644 --- a/gdb/standalone.c +++ b/gdb/standalone.c @@ -130,7 +130,7 @@ int sourcedesc; open (char *filename, int modes) { - register char *next; + char *next; if (modes) { @@ -213,8 +213,8 @@ myread (int desc, char *destptr, int size, char *filename) int fread (int bufp, int numelts, int eltsize, int stream) { - register int elts = min (numelts, sourceleft / eltsize); - register int len = elts * eltsize; + int elts = min (numelts, sourceleft / eltsize); + int len = elts * eltsize; if (stream != sourcedesc) { @@ -284,7 +284,7 @@ fprintf (int ign, int a1, int a2, int a3, int a4, int a5, int a6, int a7, fwrite (register char *buf, int numelts, int size, int stream) { - register int i = numelts * size; + int i = numelts * size; while (i-- > 0) fputc (*buf++, stream); } @@ -560,7 +560,7 @@ int kdb_stack_end; _initialize_standalone (void) { - register char *next; + char *next; /* Find start of data on files. */ diff --git a/gdb/symfile.c b/gdb/symfile.c index e2fbc2ae2ee..e92866887d9 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -206,7 +206,7 @@ int auto_solib_limit; static int compare_symbols (const void *s1p, const void *s2p) { - register struct symbol **s1, **s2; + struct symbol **s1, **s2; s1 = (struct symbol **) s1p; s2 = (struct symbol **) s2p; @@ -244,7 +244,7 @@ sort_pst_symbols (struct partial_symtab *pst) char * obsavestring (const char *ptr, int size, struct obstack *obstackp) { - register char *p = (char *) obstack_alloc (obstackp, size + 1); + char *p = (char *) obstack_alloc (obstackp, size + 1); /* Open-coded memcpy--saves function call time. These strings are usually short. FIXME: Is this really still true with a compiler that can inline memcpy? */ @@ -266,8 +266,8 @@ char * obconcat (struct obstack *obstackp, const char *s1, const char *s2, const char *s3) { - register int len = strlen (s1) + strlen (s2) + strlen (s3) + 1; - register char *val = (char *) obstack_alloc (obstackp, len); + int len = strlen (s1) + strlen (s2) + strlen (s3) + 1; + char *val = (char *) obstack_alloc (obstackp, len); strcpy (val, s1); strcat (val, s2); strcat (val, s3); @@ -2281,7 +2281,7 @@ deduce_language_from_filename (char *filename) struct symtab * allocate_symtab (char *filename, struct objfile *objfile) { - register struct symtab *symtab; + struct symtab *symtab; symtab = (struct symtab *) obstack_alloc (&objfile->symbol_obstack, sizeof (struct symtab)); @@ -2520,9 +2520,9 @@ free_named_symtabs (char *name) compilation units. We want to blow away any old info about these compilation units, regardless of which objfiles they arrived in. --gnu. */ - register struct symtab *s; - register struct symtab *prev; - register struct partial_symtab *ps; + struct symtab *s; + struct symtab *prev; + struct partial_symtab *ps; struct blockvector *bv; int blewit = 0; @@ -2653,7 +2653,7 @@ add_psymbol_to_list (char *name, int namelength, domain_enum domain, CORE_ADDR coreaddr, /* Value as a CORE_ADDR */ enum language language, struct objfile *objfile) { - register struct partial_symbol *psym; + struct partial_symbol *psym; char *buf = alloca (namelength + 1); /* psymbol is static so that there will be no uninitialized gaps in the structure which might contain random data, causing cache misses in @@ -2706,7 +2706,7 @@ add_psymbol_with_dem_name_to_list (char *name, int namelength, char *dem_name, enum language language, struct objfile *objfile) { - register struct partial_symbol *psym; + struct partial_symbol *psym; char *buf = alloca (namelength + 1); /* psymbol is static so that there will be no uninitialized gaps in the structure which might contain random data, causing cache misses in diff --git a/gdb/symmisc.c b/gdb/symmisc.c index c3cd7ab00f1..98b275e8529 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -118,8 +118,8 @@ free_symtab_block (struct objfile *objfile, struct block *b) void free_symtab (register struct symtab *s) { - register int i, n; - register struct blockvector *bv; + int i, n; + struct blockvector *bv; switch (s->free_code) { @@ -1129,13 +1129,13 @@ maintenance_info_psymtabs (char *regexp, int from_tty) void maintenance_check_symtabs (char *ignore, int from_tty) { - register struct symbol *sym; - register struct partial_symbol **psym; - register struct symtab *s = NULL; - register struct partial_symtab *ps; + struct symbol *sym; + struct partial_symbol **psym; + struct symtab *s = NULL; + struct partial_symtab *ps; struct blockvector *bv; - register struct objfile *objfile; - register struct block *b; + struct objfile *objfile; + struct block *b; int length; ALL_PSYMTABS (objfile, ps) @@ -1214,7 +1214,7 @@ maintenance_check_symtabs (char *ignore, int from_tty) static int block_depth (struct block *block) { - register int i = 0; + int i = 0; while ((block = BLOCK_SUPERBLOCK (block)) != NULL) { i++; diff --git a/gdb/symtab.c b/gdb/symtab.c index 48afabb7fbd..206119980c8 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -151,9 +151,9 @@ const struct block *block_found; struct symtab * lookup_symtab (const char *name) { - register struct symtab *s; - register struct partial_symtab *ps; - register struct objfile *objfile; + struct symtab *s; + struct partial_symtab *ps; + struct objfile *objfile; char *real_path = NULL; char *full_path = NULL; @@ -244,8 +244,8 @@ got_symtab: struct partial_symtab * lookup_partial_symtab (const char *name) { - register struct partial_symtab *pst; - register struct objfile *objfile; + struct partial_symtab *pst; + struct objfile *objfile; char *full_path = NULL; char *real_path = NULL; @@ -679,8 +679,8 @@ init_sal (struct symtab_and_line *sal) struct partial_symtab * find_pc_sect_psymtab (CORE_ADDR pc, asection *section) { - register struct partial_symtab *pst; - register struct objfile *objfile; + struct partial_symtab *pst; + struct objfile *objfile; struct minimal_symbol *msymbol; /* If we know that this is not a text address, return failure. This is @@ -1492,12 +1492,12 @@ lookup_partial_symbol (struct partial_symtab *pst, const char *name, struct type * lookup_transparent_type (const char *name) { - register struct symbol *sym; - register struct symtab *s = NULL; - register struct partial_symtab *ps; + struct symbol *sym; + struct symtab *s = NULL; + struct partial_symtab *ps; struct blockvector *bv; - register struct objfile *objfile; - register struct block *block; + struct objfile *objfile; + struct block *block; /* Now search all the global symbols. Do the symtab's first, then check the psymtab's. If a psymtab indicates the existence @@ -1601,8 +1601,8 @@ lookup_transparent_type (const char *name) struct partial_symtab * find_main_psymtab (void) { - register struct partial_symtab *pst; - register struct objfile *objfile; + struct partial_symtab *pst; + struct objfile *objfile; ALL_PSYMTABS (objfile, pst) { @@ -1746,12 +1746,12 @@ find_active_alias (struct symbol *sym, CORE_ADDR addr) struct symtab * find_pc_sect_symtab (CORE_ADDR pc, asection *section) { - register struct block *b; + struct block *b; struct blockvector *bv; - register struct symtab *s = NULL; - register struct symtab *best_s = NULL; - register struct partial_symtab *ps; - register struct objfile *objfile; + struct symtab *s = NULL; + struct symtab *best_s = NULL; + struct partial_symtab *ps; + struct objfile *objfile; CORE_ADDR distance = 0; struct minimal_symbol *msymbol; @@ -1875,10 +1875,10 @@ struct symtab_and_line find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent) { struct symtab *s; - register struct linetable *l; - register int len; - register int i; - register struct linetable_entry *item; + struct linetable *l; + int len; + int i; + struct linetable_entry *item; struct symtab_and_line val; struct blockvector *bv; struct minimal_symbol *msymbol; @@ -2291,8 +2291,8 @@ static int find_line_common (register struct linetable *l, register int lineno, int *exact_match) { - register int i; - register int len; + int i; + int len; /* BEST is the smallest linenumber > LINENO so far seen, or 0 if none has been seen so far. @@ -2607,9 +2607,9 @@ output_source_filename (char *name, int *first) static void sources_info (char *ignore, int from_tty) { - register struct symtab *s; - register struct partial_symtab *ps; - register struct objfile *objfile; + struct symtab *s; + struct partial_symtab *ps; + struct objfile *objfile; int first; if (!have_full_symbols () && !have_partial_symbols ()) @@ -2749,14 +2749,14 @@ void search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[], struct symbol_search **matches) { - register struct symtab *s; - register struct partial_symtab *ps; - register struct blockvector *bv; + struct symtab *s; + struct partial_symtab *ps; + struct blockvector *bv; struct blockvector *prev_bv = 0; - register struct block *b; - register int i = 0; + struct block *b; + int i = 0; struct dict_iterator iter; - register struct symbol *sym; + struct symbol *sym; struct partial_symbol **psym; struct objfile *objfile; struct minimal_symbol *msymbol; @@ -3585,9 +3585,9 @@ make_symbol_completion_list (char *text, char *word) char ** make_file_symbol_completion_list (char *text, char *word, char *srcfile) { - register struct symbol *sym; - register struct symtab *s; - register struct block *b; + struct symbol *sym; + struct symtab *s; + struct block *b; struct dict_iterator iter; /* The symbol we are completing on. Points in same buffer as text. */ char *sym_text; @@ -3748,9 +3748,9 @@ not_interesting_fname (const char *fname) char ** make_source_files_completion_list (char *text, char *word) { - register struct symtab *s; - register struct partial_symtab *ps; - register struct objfile *objfile; + struct symtab *s; + struct partial_symtab *ps; + struct objfile *objfile; int first = 1; int list_alloced = 1; int list_used = 0; diff --git a/gdb/top.c b/gdb/top.c index 05fb3d4568c..6f0f9a10a65 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -640,8 +640,8 @@ do_chdir_cleanup (void *old_dir) void execute_command (char *p, int from_tty) { - register struct cmd_list_element *c; - register enum language flang; + struct cmd_list_element *c; + enum language flang; static int warned = 0; char *line; @@ -1135,7 +1135,7 @@ command_line_input (char *prompt_arg, int repeat, char *annotation_suffix) { static char *linebuffer = 0; static unsigned linelength = 0; - register char *p; + char *p; char *p1; char *rl; char *local_prompt = prompt_arg; diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 7d09ff332ef..6cb632370cb 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -334,7 +334,7 @@ set_traceframe_context (CORE_ADDR trace_pc) static struct tracepoint * set_raw_tracepoint (struct symtab_and_line sal) { - register struct tracepoint *t, *tc; + struct tracepoint *t, *tc; struct cleanup *old_chain; t = (struct tracepoint *) xmalloc (sizeof (struct tracepoint)); diff --git a/gdb/typeprint.c b/gdb/typeprint.c index a8d67cc326f..1361e11d0a6 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -117,7 +117,7 @@ whatis_exp (char *exp, int show) { struct expression *expr; struct value *val; - register struct cleanup *old_chain = NULL; + struct cleanup *old_chain = NULL; struct type *real_type = NULL; struct type *type; int full = 0; @@ -204,9 +204,9 @@ ptype_eval (struct expression *exp) static void ptype_command (char *typename, int from_tty) { - register struct type *type; + struct type *type; struct expression *expr; - register struct cleanup *old_chain; + struct cleanup *old_chain; if (typename == NULL) { @@ -325,8 +325,8 @@ void maintenance_print_type (char *typename, int from_tty) { struct value *val; - register struct type *type; - register struct cleanup *old_chain; + struct type *type; + struct cleanup *old_chain; struct expression *expr; if (typename != NULL) diff --git a/gdb/utils.c b/gdb/utils.c index b547cc1404c..15ac7d3cf63 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -266,9 +266,9 @@ struct cleanup * make_my_cleanup (struct cleanup **pmy_chain, make_cleanup_ftype *function, void *arg) { - register struct cleanup *new + struct cleanup *new = (struct cleanup *) xmalloc (sizeof (struct cleanup)); - register struct cleanup *old_chain = *pmy_chain; + struct cleanup *old_chain = *pmy_chain; new->next = *pmy_chain; new->function = function; @@ -315,7 +315,7 @@ void do_my_cleanups (register struct cleanup **pmy_chain, register struct cleanup *old_chain) { - register struct cleanup *ptr; + struct cleanup *ptr; while ((ptr = *pmy_chain) != old_chain) { *pmy_chain = ptr->next; /* Do this first incase recursion */ @@ -349,7 +349,7 @@ void discard_my_cleanups (register struct cleanup **pmy_chain, register struct cleanup *old_chain) { - register struct cleanup *ptr; + struct cleanup *ptr; while ((ptr = *pmy_chain) != old_chain) { *pmy_chain = ptr->next; @@ -1220,7 +1220,7 @@ xvasprintf (char **ret, const char *format, va_list ap) int myread (int desc, char *addr, int len) { - register int val; + int val; int orglen = len; while (len > 0) @@ -1243,7 +1243,7 @@ myread (int desc, char *addr, int len) char * savestring (const char *ptr, size_t size) { - register char *p = (char *) xmalloc (size + 1); + char *p = (char *) xmalloc (size + 1); memcpy (p, ptr, size); p[size] = 0; return p; @@ -1252,7 +1252,7 @@ savestring (const char *ptr, size_t size) char * msavestring (void *md, const char *ptr, size_t size) { - register char *p = (char *) xmmalloc (md, size + 1); + char *p = (char *) xmmalloc (md, size + 1); memcpy (p, ptr, size); p[size] = 0; return p; @@ -1293,8 +1293,8 @@ int query (const char *ctlstr, ...) { va_list args; - register int answer; - register int ans2; + int answer; + int ans2; int retval; va_start (args, ctlstr); @@ -1398,7 +1398,7 @@ int parse_escape (char **string_ptr) { int target_char; - register int c = *(*string_ptr)++; + int c = *(*string_ptr)++; if (c_parse_backslash (c, &target_char)) return target_char; else diff --git a/gdb/valarith.c b/gdb/valarith.c index 854a1517ae6..03282eade74 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -1158,8 +1158,8 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) int value_logical_not (struct value *arg1) { - register int len; - register char *p; + int len; + char *p; struct type *type1; COERCE_NUMBER (arg1); @@ -1216,8 +1216,8 @@ value_strcmp (struct value *arg1, struct value *arg2) int value_equal (struct value *arg1, struct value *arg2) { - register int len; - register char *p1, *p2; + int len; + char *p1, *p2; struct type *type1, *type2; enum type_code code1; enum type_code code2; @@ -1275,8 +1275,8 @@ value_equal (struct value *arg1, struct value *arg2) int value_less (struct value *arg1, struct value *arg2) { - register enum type_code code1; - register enum type_code code2; + enum type_code code1; + enum type_code code2; struct type *type1, *type2; COERCE_NUMBER (arg1); @@ -1317,8 +1317,8 @@ value_less (struct value *arg1, struct value *arg2) struct value * value_neg (struct value *arg1) { - register struct type *type; - register struct type *result_type = VALUE_TYPE (arg1); + struct type *type; + struct type *result_type = VALUE_TYPE (arg1); COERCE_REF (arg1); COERCE_ENUM (arg1); @@ -1346,8 +1346,8 @@ value_neg (struct value *arg1) struct value * value_complement (struct value *arg1) { - register struct type *type; - register struct type *result_type = VALUE_TYPE (arg1); + struct type *type; + struct type *result_type = VALUE_TYPE (arg1); int typecode; COERCE_REF (arg1); diff --git a/gdb/valops.c b/gdb/valops.c index 9d02a350298..39ee49781c4 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -88,7 +88,7 @@ int overload_resolution = 0; struct value * find_function_in_inferior (const char *name) { - register struct symbol *sym; + struct symbol *sym; sym = lookup_symbol (name, 0, VAR_DOMAIN, 0, NULL); if (sym != NULL) { @@ -157,9 +157,9 @@ allocate_space_in_inferior (int len) struct value * value_cast (struct type *type, struct value *arg2) { - register enum type_code code1; - register enum type_code code2; - register int scalar; + enum type_code code1; + enum type_code code2; + int scalar; struct type *type2; int convert_to_boolean = 0; @@ -480,7 +480,7 @@ value_fetch_lazy (struct value *val) struct value * value_assign (struct value *toval, struct value *fromval) { - register struct type *type; + struct type *type; struct value *val; char raw_buffer[MAX_REGISTER_SIZE]; int use_buffer = 0; @@ -800,7 +800,7 @@ value_of_variable (struct symbol *var, struct block *b) struct value * value_coerce_array (struct value *arg1) { - register struct type *type = check_typedef (VALUE_TYPE (arg1)); + struct type *type = check_typedef (VALUE_TYPE (arg1)); if (VALUE_LVAL (arg1) != lval_memory) error ("Attempt to take address of value not located in memory."); @@ -920,7 +920,7 @@ value_ind (struct value *arg1) CORE_ADDR push_word (CORE_ADDR sp, ULONGEST word) { - register int len = DEPRECATED_REGISTER_SIZE; + int len = DEPRECATED_REGISTER_SIZE; char buffer[MAX_REGISTER_SIZE]; store_unsigned_integer (buffer, len, word); @@ -971,9 +971,9 @@ push_bytes (CORE_ADDR sp, char *buffer, int len) static CORE_ADDR value_push (register CORE_ADDR sp, struct value *arg) { - register int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg)); - register int container_len = len; - register int offset; + int len = TYPE_LENGTH (VALUE_ENCLOSING_TYPE (arg)); + int container_len = len; + int offset; /* How big is the container we're going to put this value in? */ if (PARM_BOUNDARY) @@ -1617,7 +1617,7 @@ struct value * value_struct_elt (struct value **argp, struct value **args, char *name, int *static_memfuncp, char *err) { - register struct type *t; + struct type *t; struct value *v; COERCE_ARRAY (*argp); @@ -1898,8 +1898,8 @@ find_overload_match (struct type **arg_types, int nargs, char *name, int method, int num_fns = 0; /* Number of overloaded instances being considered */ struct type *basetype = NULL; int boffset; - register int jj; - register int ix; + int jj; + int ix; int static_offset; struct cleanup *cleanups = NULL; @@ -2140,7 +2140,7 @@ destructor_name_p (const char *name, const struct type *type) static int check_field_in (register struct type *type, const char *name) { - register int i; + int i; for (i = TYPE_NFIELDS (type) - 1; i >= TYPE_N_BASECLASSES (type); i--) { @@ -2181,7 +2181,7 @@ check_field_in (register struct type *type, const char *name) int check_field (struct value *arg1, const char *name) { - register struct type *t; + struct type *t; COERCE_ARRAY (arg1); @@ -2219,8 +2219,8 @@ value_struct_elt_for_reference (struct type *domain, int offset, struct type *curtype, char *name, struct type *intype) { - register struct type *t = curtype; - register int i; + struct type *t = curtype; + int i; struct value *v; if (TYPE_CODE (t) != TYPE_CODE_STRUCT diff --git a/gdb/values.c b/gdb/values.c index 67f91f01b10..7b6ce6fc210 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -214,7 +214,7 @@ value_release_to_mark (struct value *mark) struct value * value_copy (struct value *arg) { - register struct type *encl_type = VALUE_ENCLOSING_TYPE (arg); + struct type *encl_type = VALUE_ENCLOSING_TYPE (arg); struct value *val = allocate_value (encl_type); VALUE_TYPE (val) = VALUE_TYPE (arg); VALUE_LVAL (val) = VALUE_LVAL (arg); @@ -291,8 +291,8 @@ struct value * access_value_history (int num) { struct value_history_chunk *chunk; - register int i; - register int absnum = num; + int i; + int absnum = num; if (absnum <= 0) absnum += value_history_count; @@ -329,7 +329,7 @@ void clear_value_history (void) { struct value_history_chunk *next; - register int i; + int i; struct value *val; while (value_history_chain) @@ -347,7 +347,7 @@ clear_value_history (void) static void show_values (char *num_exp, int from_tty) { - register int i; + int i; struct value *val; static int num = 1; @@ -404,7 +404,7 @@ static struct internalvar *internalvars; struct internalvar * lookup_internalvar (char *name) { - register struct internalvar *var; + struct internalvar *var; for (var = internalvars; var; var = var->next) if (strcmp (var->name, name) == 0) @@ -436,7 +436,7 @@ void set_internalvar_component (struct internalvar *var, int offset, int bitpos, int bitsize, struct value *newval) { - register char *addr = VALUE_CONTENTS (var->value) + offset; + char *addr = VALUE_CONTENTS (var->value) + offset; if (bitsize) modify_field (addr, value_as_long (newval), @@ -483,7 +483,7 @@ internalvar_name (struct internalvar *var) void clear_internalvars (void) { - register struct internalvar *var; + struct internalvar *var; while (internalvars) { @@ -498,7 +498,7 @@ clear_internalvars (void) static void show_convenience (char *ignore, int from_tty) { - register struct internalvar *var; + struct internalvar *var; int varseen = 0; for (var = internalvars; var; var = var->next) @@ -664,9 +664,9 @@ value_as_address (struct value *val) LONGEST unpack_long (struct type *type, const char *valaddr) { - register enum type_code code = TYPE_CODE (type); - register int len = TYPE_LENGTH (type); - register int nosign = TYPE_UNSIGNED (type); + enum type_code code = TYPE_CODE (type); + int len = TYPE_LENGTH (type); + int nosign = TYPE_UNSIGNED (type); if (current_language->la_language == language_scm && is_scmvalue_type (type)) @@ -879,7 +879,7 @@ value_primitive_field (struct value *arg1, int offset, register int fieldno, register struct type *arg_type) { struct value *v; - register struct type *type; + struct type *type; CHECK_TYPEDEF (arg_type); type = TYPE_FIELD_TYPE (arg_type, fieldno); @@ -963,7 +963,7 @@ value_fn_field (struct value **arg1p, struct fn_field *f, int j, struct type *ty int offset) { struct value *v; - register struct type *ftype = TYPE_FN_FIELD_TYPE (f, j); + struct type *ftype = TYPE_FN_FIELD_TYPE (f, j); char *physname = TYPE_FN_FIELD_PHYSNAME (f, j); struct symbol *sym; struct minimal_symbol *msym; @@ -1110,8 +1110,8 @@ struct value * value_from_longest (struct type *type, register LONGEST num) { struct value *val = allocate_value (type); - register enum type_code code; - register int len; + enum type_code code; + int len; retry: code = TYPE_CODE (type); len = TYPE_LENGTH (type); @@ -1182,8 +1182,8 @@ value_from_double (struct type *type, DOUBLEST num) { struct value *val = allocate_value (type); struct type *base_type = check_typedef (type); - register enum type_code code = TYPE_CODE (base_type); - register int len = TYPE_LENGTH (base_type); + enum type_code code = TYPE_CODE (base_type); + int len = TYPE_LENGTH (base_type); if (code == TYPE_CODE_FLT) { @@ -1280,7 +1280,7 @@ generic_use_struct_convention (int gcc_p, struct type *value_type) int using_struct_return (struct type *value_type, int gcc_p) { - register enum type_code code = TYPE_CODE (value_type); + enum type_code code = TYPE_CODE (value_type); if (code == TYPE_CODE_ERROR) error ("Function return type unknown."); @@ -1302,7 +1302,7 @@ void set_return_value (struct value *val) { struct type *type = check_typedef (VALUE_TYPE (val)); - register enum type_code code = TYPE_CODE (type); + enum type_code code = TYPE_CODE (type); if (code == TYPE_CODE_ERROR) error ("Function return type unknown."); diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c index ed14225169f..76fd5b77480 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -298,7 +298,7 @@ vax_breakpoint_from_pc (CORE_ADDR *pcptr, int *lenptr) static CORE_ADDR vax_skip_prologue (CORE_ADDR pc) { - register int op = (unsigned char) read_memory_integer (pc, 1); + int op = (unsigned char) read_memory_integer (pc, 1); if (op == 0x11) pc += 2; /* skip brb */ if (op == 0x31) diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 70081922424..6bcea70d8c9 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1441,7 +1441,7 @@ static struct symbol * process_xcoff_symbol (register struct coff_symbol *cs, struct objfile *objfile) { struct symbol onesymbol; - register struct symbol *sym = &onesymbol; + struct symbol *sym = &onesymbol; struct symbol *sym2 = NULL; char *name, *pp;