From d6e6bc1c529056b022926c1831123774f5862be6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 16 Mar 1994 22:22:17 +0000 Subject: [PATCH] * config/obj-coffbfd.c (adjust_stab_section): Initialize stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it is not SEG_UNKNOWN rather than checking whether it is >= 0. --- gas/ChangeLog | 4 ++++ gas/config/obj-coffbfd.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 40415e243aa..9c5d0819886 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,9 @@ Wed Mar 16 17:11:37 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) + * config/obj-coffbfd.c (adjust_stab_section): Initialize + stabstrseg to SEG_UNKNOWN, not -1. After loop, check whether it + is not SEG_UNKNOWN rather than checking whether it is >= 0. + * config/tc-mips.c (mips_align): Take new argument, label, and use it instead of global insn_label. (s_align, s_cons, s_float_cons, s_gpword): Save insn_label before diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index 494de2276bd..b09368ca1c3 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -2680,7 +2680,7 @@ adjust_stab_section(abfd, seg) bfd *abfd; segT seg; { - segT stabstrseg = -1; + segT stabstrseg = SEG_UNKNOWN; char *secname, *name, *name2; char *p = NULL; int i, strsz = 0, nsyms; @@ -2704,7 +2704,7 @@ adjust_stab_section(abfd, seg) } /* If we found the section, get its size. */ - if (stabstrseg >= 0) + if (stabstrseg != SEG_UNKNOWN) strsz = size_section (abfd, stabstrseg); nsyms = size_section (abfd, seg) / 12 - 1; -- 2.30.2