2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>

* p-lang.c: Eliminate "register".
	* c-lang.c: Ditto.
	* expprint.c: Ditto.
	* f-lang.c: Ditto.
	* jv-lang.c: Ditto.
	* language.c: Ditto.
	* m2-lang.c: Ditto.
	* parse.c: Ditto.
	* scm-lang.c: Ditto.
	* objc-lang.c: Ditto.
This commit is contained in:
Paul N. Hilfinger 2003-09-09 08:05:43 +00:00
parent 83ee270eaa
commit f86f5ca3f5
11 changed files with 74 additions and 60 deletions

View file

@ -1,3 +1,16 @@
2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
* p-lang.c: Eliminate "register".
* c-lang.c: Ditto.
* expprint.c: Ditto.
* f-lang.c: Ditto.
* jv-lang.c: Ditto.
* language.c: Ditto.
* m2-lang.c: Ditto.
* parse.c: Ditto.
* scm-lang.c: Ditto.
* objc-lang.c: Ditto.
2003-09-09 Nick Clifton <nickc@redhat.com> 2003-09-09 Nick Clifton <nickc@redhat.com>
* v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1. * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
@ -408,6 +421,7 @@
frame_unwind_register_unsigned instead of frame_unwind_register_unsigned instead of
frame_unwind_unsigned_register. frame_unwind_unsigned_register.
>>>>>>> current-public.22/gdb/ChangeLog Mon, 08 Sep 2003 21:54:22 -0700 hilfingr (GdbPub/g/3_ChangeLog 1.15.1.2.1.1 644)
2003-08-30 Mark Kettenis <kettenis@gnu.org> 2003-08-30 Mark Kettenis <kettenis@gnu.org>
* configure.in: Search for gethostbyname in libnsl. * configure.in: Search for gethostbyname in libnsl.

View file

@ -42,7 +42,7 @@ static void c_emit_char (int c, struct ui_file * stream, int quoter);
characters and strings is language specific. */ characters and strings is language specific. */
static void static void
c_emit_char (register int c, struct ui_file *stream, int quoter) c_emit_char (int c, struct ui_file *stream, int quoter)
{ {
const char *escape; const char *escape;
int host_char; int host_char;
@ -88,7 +88,7 @@ void
c_printstr (struct ui_file *stream, char *string, unsigned int length, c_printstr (struct ui_file *stream, char *string, unsigned int length,
int width, int force_ellipses) int width, int force_ellipses)
{ {
register unsigned int i; unsigned int i;
unsigned int things_printed = 0; unsigned int things_printed = 0;
int in_quotes = 0; int in_quotes = 0;
int need_comma = 0; int need_comma = 0;
@ -207,7 +207,7 @@ c_printstr (struct ui_file *stream, char *string, unsigned int length,
struct type * struct type *
c_create_fundamental_type (struct objfile *objfile, int typeid) c_create_fundamental_type (struct objfile *objfile, int typeid)
{ {
register struct type *type = NULL; struct type *type = NULL;
switch (typeid) switch (typeid)
{ {

View file

@ -54,14 +54,14 @@ print_expression (struct expression *exp, struct ui_file *stream)
parentheses are needed here. */ parentheses are needed here. */
static void static void
print_subexp (register struct expression *exp, register int *pos, print_subexp (struct expression *exp, int *pos,
struct ui_file *stream, enum precedence prec) struct ui_file *stream, enum precedence prec)
{ {
register unsigned tem; unsigned tem;
register const struct op_print *op_print_tab; const struct op_print *op_print_tab;
register int pc; int pc;
unsigned nargs; unsigned nargs;
register char *op_str; char *op_str;
int assign_modify = 0; int assign_modify = 0;
enum exp_opcode opcode; enum exp_opcode opcode;
enum precedence myprec = PREC_NULL; enum precedence myprec = PREC_NULL;
@ -535,7 +535,7 @@ char *
op_string (enum exp_opcode op) op_string (enum exp_opcode op)
{ {
int tem; int tem;
register const struct op_print *op_print_tab; const struct op_print *op_print_tab;
op_print_tab = current_language->la_op_print_tab; op_print_tab = current_language->la_op_print_tab;
for (tem = 0; op_print_tab[tem].opcode != OP_NULL; tem++) for (tem = 0; op_print_tab[tem].opcode != OP_NULL; tem++)

View file

@ -100,7 +100,7 @@ static void f_emit_char (int c, struct ui_file * stream, int quoter);
be replaced with a true F77 version. */ be replaced with a true F77 version. */
static void static void
f_emit_char (register int c, struct ui_file *stream, int quoter) f_emit_char (int c, struct ui_file *stream, int quoter)
{ {
c &= 0xFF; /* Avoid sign bit follies */ c &= 0xFF; /* Avoid sign bit follies */
@ -164,7 +164,7 @@ static void
f_printstr (struct ui_file *stream, char *string, unsigned int length, f_printstr (struct ui_file *stream, char *string, unsigned int length,
int width, int force_ellipses) int width, int force_ellipses)
{ {
register unsigned int i; unsigned int i;
unsigned int things_printed = 0; unsigned int things_printed = 0;
int in_quotes = 0; int in_quotes = 0;
int need_comma = 0; int need_comma = 0;
@ -250,7 +250,7 @@ f_printstr (struct ui_file *stream, char *string, unsigned int length,
static struct type * static struct type *
f_create_fundamental_type (struct objfile *objfile, int typeid) f_create_fundamental_type (struct objfile *objfile, int typeid)
{ {
register struct type *type = NULL; struct type *type = NULL;
switch (typeid) switch (typeid)
{ {

View file

@ -850,8 +850,8 @@ java_emit_char (int c, struct ui_file *stream, int quoter)
} }
static struct value * static struct value *
evaluate_subexp_java (struct type *expect_type, register struct expression *exp, evaluate_subexp_java (struct type *expect_type, struct expression *exp,
register int *pos, enum noside noside) int *pos, enum noside noside)
{ {
int pc = *pos; int pc = *pos;
int i; int i;

View file

@ -1192,13 +1192,13 @@ unk_lang_error (char *msg)
} }
static void static void
unk_lang_emit_char (register int c, struct ui_file *stream, int quoter) unk_lang_emit_char (int c, struct ui_file *stream, int quoter)
{ {
error ("internal error - unimplemented function unk_lang_emit_char called."); error ("internal error - unimplemented function unk_lang_emit_char called.");
} }
static void static void
unk_lang_printchar (register int c, struct ui_file *stream) unk_lang_printchar (int c, struct ui_file *stream)
{ {
error ("internal error - unimplemented function unk_lang_printchar called."); error ("internal error - unimplemented function unk_lang_printchar called.");
} }

View file

@ -45,7 +45,7 @@ static void m2_emit_char (int, struct ui_file *, int);
*/ */
static void static void
m2_emit_char (register int c, struct ui_file *stream, int quoter) m2_emit_char (int c, struct ui_file *stream, int quoter)
{ {
c &= 0xFF; /* Avoid sign bit follies */ c &= 0xFF; /* Avoid sign bit follies */
@ -112,7 +112,7 @@ static void
m2_printstr (struct ui_file *stream, char *string, unsigned int length, m2_printstr (struct ui_file *stream, char *string, unsigned int length,
int width, int force_ellipses) int width, int force_ellipses)
{ {
register unsigned int i; unsigned int i;
unsigned int things_printed = 0; unsigned int things_printed = 0;
int in_quotes = 0; int in_quotes = 0;
int need_comma = 0; int need_comma = 0;
@ -198,7 +198,7 @@ m2_printstr (struct ui_file *stream, char *string, unsigned int length,
static struct type * static struct type *
m2_create_fundamental_type (struct objfile *objfile, int typeid) m2_create_fundamental_type (struct objfile *objfile, int typeid)
{ {
register struct type *type = NULL; struct type *type = NULL;
switch (typeid) switch (typeid)
{ {

View file

@ -83,7 +83,7 @@ struct objc_method {
struct symbol * struct symbol *
lookup_struct_typedef (char *name, struct block *block, int noerr) lookup_struct_typedef (char *name, struct block *block, int noerr)
{ {
register struct symbol *sym; struct symbol *sym;
sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0, sym = lookup_symbol (name, block, STRUCT_DOMAIN, 0,
(struct symtab **) NULL); (struct symtab **) NULL);
@ -274,7 +274,7 @@ objc_demangle (const char *mangled, int options)
for printing characters and strings is language specific. */ for printing characters and strings is language specific. */
static void static void
objc_emit_char (register int c, struct ui_file *stream, int quoter) objc_emit_char (int c, struct ui_file *stream, int quoter)
{ {
c &= 0xFF; /* Avoid sign bit follies. */ c &= 0xFF; /* Avoid sign bit follies. */
@ -337,7 +337,7 @@ static void
objc_printstr (struct ui_file *stream, char *string, objc_printstr (struct ui_file *stream, char *string,
unsigned int length, int width, int force_ellipses) unsigned int length, int width, int force_ellipses)
{ {
register unsigned int i; unsigned int i;
unsigned int things_printed = 0; unsigned int things_printed = 0;
int in_quotes = 0; int in_quotes = 0;
int need_comma = 0; int need_comma = 0;
@ -449,7 +449,7 @@ objc_printstr (struct ui_file *stream, char *string,
static struct type * static struct type *
objc_create_fundamental_type (struct objfile *objfile, int typeid) objc_create_fundamental_type (struct objfile *objfile, int typeid)
{ {
register struct type *type = NULL; struct type *type = NULL;
switch (typeid) switch (typeid)
{ {
@ -703,7 +703,7 @@ static char *msglist_sel;
void void
start_msglist(void) start_msglist(void)
{ {
register struct selname *new = struct selname *new =
(struct selname *) xmalloc (sizeof (struct selname)); (struct selname *) xmalloc (sizeof (struct selname));
new->next = selname_chain; new->next = selname_chain;
@ -749,9 +749,9 @@ add_msglist(struct stoken *str, int addcolon)
int int
end_msglist(void) end_msglist(void)
{ {
register int val = msglist_len; int val = msglist_len;
register struct selname *sel = selname_chain; struct selname *sel = selname_chain;
register char *p = msglist_sel; char *p = msglist_sel;
int selid; int selid;
selname_chain = sel->next; selname_chain = sel->next;
@ -1533,7 +1533,7 @@ print_object_command (char *args, int from_tty)
{ {
struct expression *expr = parse_expression (args); struct expression *expr = parse_expression (args);
register struct cleanup *old_chain = struct cleanup *old_chain =
make_cleanup (free_current_contents, &expr); make_cleanup (free_current_contents, &expr);
int pc = 0; int pc = 0;

View file

@ -99,7 +99,7 @@ static void pascal_one_char (int, struct ui_file *, int *);
In_quotes is reset to 0 if a char is written with #4 notation */ In_quotes is reset to 0 if a char is written with #4 notation */
static void static void
pascal_one_char (register int c, struct ui_file *stream, int *in_quotes) pascal_one_char (int c, struct ui_file *stream, int *in_quotes)
{ {
c &= 0xFF; /* Avoid sign bit follies */ c &= 0xFF; /* Avoid sign bit follies */
@ -132,7 +132,7 @@ static void pascal_emit_char (int c, struct ui_file *stream, int quoter);
characters and strings is language specific. */ characters and strings is language specific. */
static void static void
pascal_emit_char (register int c, struct ui_file *stream, int quoter) pascal_emit_char (int c, struct ui_file *stream, int quoter)
{ {
int in_quotes = 0; int in_quotes = 0;
pascal_one_char (c, stream, &in_quotes); pascal_one_char (c, stream, &in_quotes);
@ -158,7 +158,7 @@ void
pascal_printstr (struct ui_file *stream, char *string, unsigned int length, pascal_printstr (struct ui_file *stream, char *string, unsigned int length,
int width, int force_ellipses) int width, int force_ellipses)
{ {
register unsigned int i; unsigned int i;
unsigned int things_printed = 0; unsigned int things_printed = 0;
int in_quotes = 0; int in_quotes = 0;
int need_comma = 0; int need_comma = 0;
@ -274,7 +274,7 @@ pascal_printstr (struct ui_file *stream, char *string, unsigned int length,
struct type * struct type *
pascal_create_fundamental_type (struct objfile *objfile, int typeid) pascal_create_fundamental_type (struct objfile *objfile, int typeid)
{ {
register struct type *type = NULL; struct type *type = NULL;
switch (typeid) switch (typeid)
{ {

View file

@ -112,7 +112,7 @@ static struct funcall *funcall_chain;
void void
start_arglist (void) start_arglist (void)
{ {
register struct funcall *new; struct funcall *new;
new = (struct funcall *) xmalloc (sizeof (struct funcall)); new = (struct funcall *) xmalloc (sizeof (struct funcall));
new->next = funcall_chain; new->next = funcall_chain;
@ -127,8 +127,8 @@ start_arglist (void)
int int
end_arglist (void) end_arglist (void)
{ {
register int val = arglist_len; int val = arglist_len;
register struct funcall *call = funcall_chain; struct funcall *call = funcall_chain;
funcall_chain = call->next; funcall_chain = call->next;
arglist_len = call->arglist_len; arglist_len = call->arglist_len;
xfree (call); xfree (call);
@ -141,7 +141,7 @@ end_arglist (void)
static void static void
free_funcalls (void *ignore) free_funcalls (void *ignore)
{ {
register struct funcall *call, *next; struct funcall *call, *next;
for (call = funcall_chain; call; call = next) for (call = funcall_chain; call; call = next)
{ {
@ -263,9 +263,9 @@ write_exp_elt_intern (struct internalvar *expelt)
void void
write_exp_string (struct stoken str) write_exp_string (struct stoken str)
{ {
register int len = str.length; int len = str.length;
register int lenelt; int lenelt;
register char *strdata; char *strdata;
/* Compute the number of expression elements required to hold the string /* Compute the number of expression elements required to hold the string
(including a null byte terminator), along with one expression element (including a null byte terminator), along with one expression element
@ -312,10 +312,10 @@ write_exp_string (struct stoken str)
void void
write_exp_bitstring (struct stoken str) write_exp_bitstring (struct stoken str)
{ {
register int bits = str.length; /* length in bits */ int bits = str.length; /* length in bits */
register int len = (bits + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT; int len = (bits + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT;
register int lenelt; int lenelt;
register char *strdata; char *strdata;
/* Compute the number of expression elements required to hold the bitstring, /* Compute the number of expression elements required to hold the bitstring,
along with one expression element at each end to record the actual along with one expression element at each end to record the actual
@ -564,7 +564,7 @@ parse_nested_classes_for_hpacc (char *name, int len, char **token,
consider *prefixes* of the string; there is no need to look up consider *prefixes* of the string; there is no need to look up
"B::C" separately as a symbol in the previous example. */ "B::C" separately as a symbol in the previous example. */
register char *p; char *p;
char *start, *end; char *start, *end;
char *prefix = NULL; char *prefix = NULL;
char *tmp; char *tmp;
@ -769,12 +769,12 @@ copy_name (struct stoken token)
to prefix form (in which we can conveniently print or execute it). */ to prefix form (in which we can conveniently print or execute it). */
static void static void
prefixify_expression (register struct expression *expr) prefixify_expression (struct expression *expr)
{ {
register int len = int len =
sizeof (struct expression) + EXP_ELEM_TO_BYTES (expr->nelts); sizeof (struct expression) + EXP_ELEM_TO_BYTES (expr->nelts);
register struct expression *temp; struct expression *temp;
register int inpos = expr->nelts, outpos = 0; int inpos = expr->nelts, outpos = 0;
temp = (struct expression *) alloca (len); temp = (struct expression *) alloca (len);
@ -788,11 +788,11 @@ prefixify_expression (register struct expression *expr)
whose last exp_element is at index ENDPOS - 1 in EXPR. */ whose last exp_element is at index ENDPOS - 1 in EXPR. */
int int
length_of_subexp (register struct expression *expr, register int endpos) length_of_subexp (struct expression *expr, int endpos)
{ {
register int oplen = 1; int oplen = 1;
register int args = 0; int args = 0;
register int i; int i;
if (endpos < 1) if (endpos < 1)
error ("?error in length_of_subexp"); error ("?error in length_of_subexp");
@ -930,12 +930,12 @@ length_of_subexp (register struct expression *expr, register int endpos)
In the process, convert it from suffix to prefix form. */ In the process, convert it from suffix to prefix form. */
static void static void
prefixify_subexp (register struct expression *inexpr, prefixify_subexp (struct expression *inexpr,
struct expression *outexpr, register int inend, int outbeg) struct expression *outexpr, int inend, int outbeg)
{ {
register int oplen = 1; int oplen = 1;
register int args = 0; int args = 0;
register int i; int i;
int *arglens; int *arglens;
enum exp_opcode opcode; enum exp_opcode opcode;
@ -1175,7 +1175,7 @@ parse_exp_1 (char **stringptr, struct block *block, int comma)
struct expression * struct expression *
parse_expression (char *string) parse_expression (char *string)
{ {
register struct expression *exp; struct expression *exp;
exp = parse_exp_1 (&string, 0, 0); exp = parse_exp_1 (&string, 0, 0);
if (*string) if (*string)
error ("Junk after end of expression."); error ("Junk after end of expression.");

View file

@ -202,8 +202,8 @@ scm_evaluate_string (char *str, int len)
} }
static struct value * static struct value *
evaluate_subexp_scm (struct type *expect_type, register struct expression *exp, evaluate_subexp_scm (struct type *expect_type, struct expression *exp,
register int *pos, enum noside noside) int *pos, enum noside noside)
{ {
enum exp_opcode op = exp->elts[*pos].opcode; enum exp_opcode op = exp->elts[*pos].opcode;
int len, pc; int len, pc;