2003-09-20 Andrew Cagney <cagney@redhat.com>

* cli/cli-script.c: Remove "register" attributes.
	* config/pa/tm-hppa.h: Ditto.
	* cli/cli-decode.c: Ditto.
	* cli/cli-cmds.c: Ditto.
This commit is contained in:
Andrew Cagney 2003-09-20 17:50:28 +00:00
parent c6316faa9b
commit d5b5ac7914
7 changed files with 33 additions and 22 deletions

View file

@ -1,3 +1,10 @@
2003-09-20 Andrew Cagney <cagney@redhat.com>
* cli/cli-script.c: Remove "register" attributes.
* config/pa/tm-hppa.h: Ditto.
* cli/cli-decode.c: Ditto.
* cli/cli-cmds.c: Ditto.
2003-09-19 Andrew Cagney <cagney@redhat.com> 2003-09-19 Andrew Cagney <cagney@redhat.com>
* sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to

View file

@ -444,7 +444,7 @@ static void
echo_command (char *text, int from_tty) echo_command (char *text, int from_tty)
{ {
char *p = text; char *p = text;
register int c; int c;
if (text) if (text)
while ((c = *p++) != '\0') while ((c = *p++) != '\0')

View file

@ -133,7 +133,7 @@ struct cmd_list_element *
add_cmd (char *name, enum command_class class, void (*fun) (char *, int), add_cmd (char *name, enum command_class class, void (*fun) (char *, int),
char *doc, struct cmd_list_element **list) char *doc, struct cmd_list_element **list)
{ {
register struct cmd_list_element *c struct cmd_list_element *c
= (struct cmd_list_element *) xmalloc (sizeof (struct cmd_list_element)); = (struct cmd_list_element *) xmalloc (sizeof (struct cmd_list_element));
struct cmd_list_element *p; struct cmd_list_element *p;
@ -212,8 +212,8 @@ add_alias_cmd (char *name, char *oldname, enum command_class class,
{ {
/* Must do this since lookup_cmd tries to side-effect its first arg */ /* Must do this since lookup_cmd tries to side-effect its first arg */
char *copied_name; char *copied_name;
register struct cmd_list_element *old; struct cmd_list_element *old;
register struct cmd_list_element *c; struct cmd_list_element *c;
copied_name = (char *) alloca (strlen (oldname) + 1); copied_name = (char *) alloca (strlen (oldname) + 1);
strcpy (copied_name, oldname); strcpy (copied_name, oldname);
old = lookup_cmd (&copied_name, *list, "", 1, 1); old = lookup_cmd (&copied_name, *list, "", 1, 1);
@ -247,7 +247,7 @@ add_prefix_cmd (char *name, enum command_class class, void (*fun) (char *, int),
char *prefixname, int allow_unknown, char *prefixname, int allow_unknown,
struct cmd_list_element **list) struct cmd_list_element **list)
{ {
register struct cmd_list_element *c = add_cmd (name, class, fun, doc, list); struct cmd_list_element *c = add_cmd (name, class, fun, doc, list);
c->prefixlist = prefixlist; c->prefixlist = prefixlist;
c->prefixname = prefixname; c->prefixname = prefixname;
c->allow_unknown = allow_unknown; c->allow_unknown = allow_unknown;
@ -262,7 +262,7 @@ add_abbrev_prefix_cmd (char *name, enum command_class class,
struct cmd_list_element **prefixlist, char *prefixname, struct cmd_list_element **prefixlist, char *prefixname,
int allow_unknown, struct cmd_list_element **list) int allow_unknown, struct cmd_list_element **list)
{ {
register struct cmd_list_element *c = add_cmd (name, class, fun, doc, list); struct cmd_list_element *c = add_cmd (name, class, fun, doc, list);
c->prefixlist = prefixlist; c->prefixlist = prefixlist;
c->prefixname = prefixname; c->prefixname = prefixname;
c->allow_unknown = allow_unknown; c->allow_unknown = allow_unknown;
@ -500,7 +500,7 @@ add_show_from_set (struct cmd_list_element *setcmd,
void void
delete_cmd (char *name, struct cmd_list_element **list) delete_cmd (char *name, struct cmd_list_element **list)
{ {
register struct cmd_list_element *c; struct cmd_list_element *c;
struct cmd_list_element *p; struct cmd_list_element *p;
while (*list && STREQ ((*list)->name, name)) while (*list && STREQ ((*list)->name, name))
@ -577,7 +577,7 @@ void
apropos_cmd (struct ui_file *stream, struct cmd_list_element *commandlist, apropos_cmd (struct ui_file *stream, struct cmd_list_element *commandlist,
struct re_pattern_buffer *regex, char *prefix) struct re_pattern_buffer *regex, char *prefix)
{ {
register struct cmd_list_element *c; struct cmd_list_element *c;
int returnvalue=1; /*Needed to avoid double printing*/ int returnvalue=1; /*Needed to avoid double printing*/
/* Walk through the commands */ /* Walk through the commands */
for (c=commandlist;c;c=c->next) for (c=commandlist;c;c=c->next)
@ -786,7 +786,7 @@ print_doc_line (struct ui_file *stream, char *str)
{ {
static char *line_buffer = 0; static char *line_buffer = 0;
static int line_size; static int line_size;
register char *p; char *p;
if (!line_buffer) if (!line_buffer)
{ {
@ -830,7 +830,7 @@ void
help_cmd_list (struct cmd_list_element *list, enum command_class class, help_cmd_list (struct cmd_list_element *list, enum command_class class,
char *prefix, int recurse, struct ui_file *stream) char *prefix, int recurse, struct ui_file *stream)
{ {
register struct cmd_list_element *c; struct cmd_list_element *c;
for (c = list; c; c = c->next) for (c = list; c; c = c->next)
{ {

View file

@ -255,7 +255,7 @@ do_restore_user_call_depth (void * call_depth)
void void
execute_user_command (struct cmd_list_element *c, char *args) execute_user_command (struct cmd_list_element *c, char *args)
{ {
register struct command_line *cmdlines; struct command_line *cmdlines;
struct cleanup *old_chain; struct cleanup *old_chain;
enum command_control_type ret; enum command_control_type ret;
static int user_call_depth = 0; static int user_call_depth = 0;
@ -974,8 +974,8 @@ read_command_lines (char *prompt_arg, int from_tty)
void void
free_command_lines (struct command_line **lptr) free_command_lines (struct command_line **lptr)
{ {
register struct command_line *l = *lptr; struct command_line *l = *lptr;
register struct command_line *next; struct command_line *next;
struct command_line **blist; struct command_line **blist;
int i; int i;
@ -1040,7 +1040,7 @@ copy_command_lines (struct command_line *cmds)
static void static void
validate_comname (char *comname) validate_comname (char *comname)
{ {
register char *p; char *p;
if (comname == 0) if (comname == 0)
error_no_arg ("name of command to define"); error_no_arg ("name of command to define");
@ -1070,8 +1070,8 @@ define_command (char *comname, int from_tty)
CMD_PRE_HOOK, CMD_PRE_HOOK,
CMD_POST_HOOK CMD_POST_HOOK
}; };
register struct command_line *cmds; struct command_line *cmds;
register struct cmd_list_element *c, *newc, *oldc, *hookc = 0; struct cmd_list_element *c, *newc, *oldc, *hookc = 0;
char *tem = comname; char *tem = comname;
char *tem2; char *tem2;
char tmpbuf[MAX_TMPBUF]; char tmpbuf[MAX_TMPBUF];
@ -1176,7 +1176,7 @@ void
document_command (char *comname, int from_tty) document_command (char *comname, int from_tty)
{ {
struct command_line *doclines; struct command_line *doclines;
register struct cmd_list_element *c; struct cmd_list_element *c;
char *tem = comname; char *tem = comname;
char tmpbuf[128]; char tmpbuf[128];
@ -1194,8 +1194,8 @@ document_command (char *comname, int from_tty)
xfree (c->doc); xfree (c->doc);
{ {
register struct command_line *cl1; struct command_line *cl1;
register int len = 0; int len = 0;
for (cl1 = doclines; cl1; cl1 = cl1->next) for (cl1 = doclines; cl1; cl1 = cl1->next)
len += strlen (cl1->line) + 1; len += strlen (cl1->line) + 1;
@ -1290,7 +1290,7 @@ script_from_file (FILE *stream, char *file)
void void
show_user_1 (struct cmd_list_element *c, struct ui_file *stream) show_user_1 (struct cmd_list_element *c, struct ui_file *stream)
{ {
register struct command_line *cmdlines; struct command_line *cmdlines;
cmdlines = c->user_commands; cmdlines = c->user_commands;
if (!cmdlines) if (!cmdlines)

View file

@ -119,7 +119,7 @@ extern int hppa_instruction_nullified (void);
specified in the calling convention doc. As far as I know, the only specified in the calling convention doc. As far as I know, the only
way to get the return value is to have the caller tell us where it way to get the return value is to have the caller tell us where it
told the callee to put it, rather than have the callee tell us. */ told the callee to put it, rather than have the callee tell us. */
struct value *hppa_value_returned_from_stack (register struct type *valtype, struct value *hppa_value_returned_from_stack (struct type *valtype,
CORE_ADDR addr); CORE_ADDR addr);
#define VALUE_RETURNED_FROM_STACK(valtype,addr) \ #define VALUE_RETURNED_FROM_STACK(valtype,addr) \
hppa_value_returned_from_stack (valtype, addr) hppa_value_returned_from_stack (valtype, addr)

View file

@ -1,3 +1,7 @@
2003-09-20 Andrew Cagney <cagney@redhat.com>
* mi-main.c (get_register):
2003-09-17 Andrew Cagney <cagney@redhat.com> 2003-09-17 Andrew Cagney <cagney@redhat.com>
* mi/mi-main.c: Rename REGISTER_BYTE to DEPRECATED_REGISTER_BYTE. * mi/mi-main.c: Rename REGISTER_BYTE to DEPRECATED_REGISTER_BYTE.

View file

@ -555,7 +555,7 @@ get_register (int regnum, int format)
ptr = buf + 2; ptr = buf + 2;
for (j = 0; j < REGISTER_RAW_SIZE (regnum); j++) for (j = 0; j < REGISTER_RAW_SIZE (regnum); j++)
{ {
register int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j int idx = TARGET_BYTE_ORDER == BFD_ENDIAN_BIG ? j
: REGISTER_RAW_SIZE (regnum) - 1 - j; : REGISTER_RAW_SIZE (regnum) - 1 - j;
sprintf (ptr, "%02x", (unsigned char) raw_buffer[idx]); sprintf (ptr, "%02x", (unsigned char) raw_buffer[idx]);
ptr += 2; ptr += 2;