diff options
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/config/tc-mmix.c | 45 | ||||
-rw-r--r-- | gas/config/tc-mmix.h | 3 |
3 files changed, 8 insertions, 48 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3ad2f4f..f8b8c84 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2002-10-23 Hans-Peter Nilsson <hp@bitrange.com> + + * config/tc-mmix.h (tc_frob_file_before_adjust): Don't declare. + (tc_frob_file_before_adjust): Don't define. + * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused + function. + (mmix_frob_file_before_adjust): Remove ineffective function. + 2002-10-23 Hans-Peter Nilsson <hp@axis.com> * config/tc-cris.c (SIMPLE_EXPR): New macro. diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index 15dd5f2..06335bb 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -67,7 +67,6 @@ static void mmix_handle_rest_of_empty_line PARAMS ((void)); static void mmix_discard_rest_of_line PARAMS ((void)); static void mmix_byte PARAMS ((void)); static void mmix_cons PARAMS ((int)); -static void mmix_frob_local_reloc PARAMS ((bfd *, asection *, PTR)); /* Continue the tradition of symbols.c; use control characters to enforce magic. These are used when replacing e.g. 8F and 8B so we can handle @@ -3759,50 +3758,6 @@ mmix_parse_predefined_name (name, expP) return 1; } -/* Worker for mmix_frob_file_before_adjust. */ - -static void -mmix_frob_local_reloc (abfd, sec, xxx) - bfd *abfd ATTRIBUTE_UNUSED; - asection *sec; - PTR xxx ATTRIBUTE_UNUSED; -{ - segment_info_type *seginfo = seg_info (sec); - fixS *fixp; - - if (seginfo == NULL) - return; - - for (fixp = seginfo->fix_root; fixp; fixp = fixp->fx_next) - if (! fixp->fx_done && fixp->fx_addsy != NULL) - { - symbolS *sym = fixp->fx_addsy; - asection *section = S_GET_SEGMENT (sym); - - if (section == reg_section - && fixp->fx_r_type == BFD_RELOC_MMIX_LOCAL) - { - /* If the register is marked global, we don't need to replace - with the *real* register section since that will be done - when the symbol is changed. */ - if (! S_IS_EXTERNAL (sym)) - /* If it's a local symbol, we replace it with an anonymous - one with the same constant value. */ - fixp->fx_addsy = expr_build_uconstant (S_GET_VALUE (sym)); - } - } -} - -/* Change fixups for register symbols for BFD_MMIX_LOCAL to be for an - absolute symbol. */ - -void -mmix_frob_file_before_adjust () -{ - return; - bfd_map_over_sections (stdoutput, mmix_frob_local_reloc, (char *) 0); -} - /* Just check that we don't have a BSPEC/ESPEC pair active when changing sections "normally", and get knowledge about alignment from the new section. */ diff --git a/gas/config/tc-mmix.h b/gas/config/tc-mmix.h index cd54e0d..30d2c95 100644 --- a/gas/config/tc-mmix.h +++ b/gas/config/tc-mmix.h @@ -199,9 +199,6 @@ extern void mmix_frob_file PARAMS ((void)); struct mmix_symbol_gregs; #define TC_SYMFIELD_TYPE struct mmix_symbol_gregs * -extern void mmix_frob_file_before_adjust PARAMS ((void)); -#define tc_frob_file_before_adjust mmix_frob_file_before_adjust - extern void mmix_md_elf_section_change_hook PARAMS ((void)); #define md_elf_section_change_hook mmix_md_elf_section_change_hook |