aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mmix.c
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-mmix.c')
-rw-r--r--gas/config/tc-mmix.c9
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;
}