diff options
author | Alan Modra <amodra@gmail.com> | 2005-05-03 17:08:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-05-03 17:08:43 +0000 |
commit | 698527983f3f2375a4e49264fef52dafe3ece00c (patch) | |
tree | f5f9d696ba01bcfc9ccdaf83ec15d23d7e543042 /gas/config/tc-mmix.c | |
parent | 04dd1667401316be04feb97696399d0728b63bf6 (diff) | |
download | gdb-698527983f3f2375a4e49264fef52dafe3ece00c.zip gdb-698527983f3f2375a4e49264fef52dafe3ece00c.tar.gz gdb-698527983f3f2375a4e49264fef52dafe3ece00c.tar.bz2 |
* config/obj-ecoff.c (ecoff_frob_file_before_fix): Correct section
list traversal. Use bfd_section_list_prepend.
* config/tc-mmix.c (mmix_frob_file): Don't needlessly iterate
over the section list.
* config/tc-xtensa.c (xtensa_remove_section): Delete.
(xtensa_insert_section): Delete.
(xtensa_move_seg_list_to_beginning): Use bfd_section_list_remove
and bfd_section_list_prepend.
(xtensa_reorder_seg_list): Use bfd_section_list_remove and
bfd_section_list_insert_after.
Diffstat (limited to 'gas/config/tc-mmix.c')
-rw-r--r-- | gas/config/tc-mmix.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index 356a68a..5fc6ab9 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -3747,18 +3747,11 @@ mmix_frob_file (void) if (real_reg_section != NULL) { - asection *secp; - /* FIXME: Pass error state gracefully. */ if (bfd_get_section_flags (stdoutput, real_reg_section) & SEC_HAS_CONTENTS) as_fatal (_("register section has contents\n")); - /* Really remove the section. */ - for (secp = stdoutput->sections; - secp != real_reg_section; - secp = secp->next) - ; - bfd_section_list_remove (stdoutput, secp); + bfd_section_list_remove (stdoutput, real_reg_section); --stdoutput->section_count; } |