From: Alan Modra Date: Mon, 1 May 2006 05:41:40 +0000 (+0000) Subject: * subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c35da14031bf1f026af52fcce346803f47b5ae94;p=binutils-gdb.git * subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5b8ad032bdd..263654ab8c2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2006-05-01 James Lemke + + * subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL. + 2006-04-30 Thiemo Seufer David Ung diff --git a/gas/subsegs.c b/gas/subsegs.c index e0f721cd287..9401d61a834 100644 --- a/gas/subsegs.c +++ b/gas/subsegs.c @@ -194,7 +194,7 @@ subseg_set_rest (segT seg, subsegT subseg) newP->frch_next = frcP; /* perhaps NULL */ seginfo = seg_info (seg); - if (seginfo && seginfo->frchainP == frcP) + if (seginfo && (!seginfo->frchainP || seginfo->frchainP == frcP)) seginfo->frchainP = newP; frcP = newP;