aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-07-14 18:40:36 +0000
committerKen Raeburn <raeburn@cygnus>1994-07-14 18:40:36 +0000
commit3b6d6f715fcb762bdd5c655e0c20d2e3e09a6bd2 (patch)
tree4dbe8938428b45b30fed37852040004d61ac0e91
parent7f5f5630fc0fdf4265053c76687e27df456a4a5f (diff)
downloadgdb-3b6d6f715fcb762bdd5c655e0c20d2e3e09a6bd2.zip
gdb-3b6d6f715fcb762bdd5c655e0c20d2e3e09a6bd2.tar.gz
gdb-3b6d6f715fcb762bdd5c655e0c20d2e3e09a6bd2.tar.bz2
* config/obj-aout.c (obj_aout_frob_symbol): Use bfd_ind_section_ptr and
bfd_und_section_ptr. * subsegs.c (subseg_set_rest): Compare segT values directly, without casting to int first.
-rw-r--r--gas/ChangeLog8
-rw-r--r--gas/subsegs.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 0108caa..37fdebe 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,11 @@
+Thu Jul 14 13:21:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
+
+ * config/obj-aout.c (obj_aout_frob_symbol): Use
+ bfd_ind_section_ptr and bfd_und_section_ptr.
+
+ * subsegs.c (subseg_set_rest): Compare segT values directly,
+ without casting to int first.
+
Wed Jul 13 14:49:05 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* config/tc-m68k.c (m68k_ip): Change rp to be a const pointer.
diff --git a/gas/subsegs.c b/gas/subsegs.c
index e94dc64..5ce2e9e 100644
--- a/gas/subsegs.c
+++ b/gas/subsegs.c
@@ -223,10 +223,10 @@ subseg_set_rest (seg, subseg)
* position of chain rooted in frchain_root.
*/
for (frcP = *(lastPP = &frchain_root);
- frcP && (int) (frcP->frch_seg) <= (int) seg;
+ frcP && frcP->frch_seg <= seg;
frcP = *(lastPP = &frcP->frch_next))
{
- if ((int) (frcP->frch_seg) == (int) seg
+ if (frcP->frch_seg == seg
&& frcP->frch_subseg >= subseg)
{
break;
@@ -254,7 +254,7 @@ subseg_set_rest (seg, subseg)
*
*/
if (!frcP
- || ((int) (frcP->frch_seg) > (int) seg
+ || (frcP->frch_seg > seg
|| frcP->frch_subseg > subseg)) /* Kinky logic only works with 2 segments. */
{
/*