From 18c4f112b465dc54b5f2145cdc134c1d41c653ab Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 7 Nov 1993 07:23:52 +0000 Subject: [PATCH] * config/tc-hppa.c: (update_subspace): Fix type and name of last parameter. All callers fixed. (md_begin, pa_chk_field_selector, pa_entry): Lint. --- gas/ChangeLog | 4 ++++ gas/config/tc-hppa.c | 17 +++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 593a20f4ed5..9deb19c2fd3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ Sat Nov 6 22:41:57 1993 Jeffrey A. Law (law@snake.cs.utah.edu) + * config/tc-hppa.c: (update_subspace): Fix type and name of last + parameter. All callers fixed. + (md_begin, pa_chk_field_selector, pa_entry): Lint. + * config/tc-hppa.c (cons_fix_new_hppa): Reset field selector to default state after it's been used. diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c index 27678d58fc3..184f4f006f7 100644 --- a/gas/config/tc-hppa.c +++ b/gas/config/tc-hppa.c @@ -594,7 +594,8 @@ static ssd_chain_struct * create_new_subspace PARAMS ((sd_chain_struct *, static ssd_chain_struct *update_subspace PARAMS ((sd_chain_struct *, char *, char, char, char, char, char, char, int, - int, int, int, subsegT)); + int, int, int, + asection *)); static sd_chain_struct *is_defined_space PARAMS ((char *)); static ssd_chain_struct *is_defined_subspace PARAMS ((char *)); static sd_chain_struct *pa_segment_to_space PARAMS ((asection *)); @@ -1375,7 +1376,7 @@ cons_fix_new_hppa (frag, where, size, exp) void md_begin () { - char *retval = NULL; + const char *retval = NULL; int lose = 0; unsigned int i = 0; @@ -1400,7 +1401,7 @@ md_begin () while (i < NUMOPCODES) { const char *name = pa_opcodes[i].name; - retval = hash_insert (op_hash, name, &pa_opcodes[i]); + retval = hash_insert (op_hash, name, (struct pa_opcode *)&pa_opcodes[i]); if (retval != NULL && *retval != '\0') { as_fatal ("Internal error: can't hash `%s': %s\n", name, retval); @@ -3632,7 +3633,7 @@ pa_chk_field_selector (str) char **str; { int selector; - struct selector_entry *tablep; + const struct selector_entry *tablep; selector = e_fsel; @@ -4694,7 +4695,7 @@ pa_entry (unused) fix_new_hppa (frag_now, where - frag_now->fr_literal, 0, last_call_info->start_symbol, (offsetT) 0, NULL, 0, R_HPPA_ENTRY, e_fsel, 0, 0, - &last_call_info->ci_unwind.descriptor); + (char *)&last_call_info->ci_unwind.descriptor); } #endif @@ -6073,7 +6074,7 @@ create_new_subspace (space, name, loadable, code_only, common, static ssd_chain_struct * update_subspace (space, name, loadable, code_only, common, dup_common, sort, - zero, access, space_index, alignment, quadrant, subseg) + zero, access, space_index, alignment, quadrant, section) sd_chain_struct *space; char *name; char loadable; @@ -6086,7 +6087,7 @@ update_subspace (space, name, loadable, code_only, common, dup_common, sort, int space_index; int alignment; int quadrant; - subsegT subseg; + asection *section; { ssd_chain_struct *chain_entry; @@ -6107,7 +6108,7 @@ update_subspace (space, name, loadable, code_only, common, dup_common, sort, chain_entry = NULL; #ifdef obj_set_subsection_attributes - obj_set_subsection_attributes (subseg, space->sd_seg, access, + obj_set_subsection_attributes (section, space->sd_seg, access, sort, quadrant); #endif -- 2.30.2