* subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL.
authorAlan Modra <amodra@gmail.com>
Mon, 1 May 2006 05:41:40 +0000 (05:41 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 1 May 2006 05:41:40 +0000 (05:41 +0000)
gas/ChangeLog
gas/subsegs.c

index 5b8ad032bdd5c3f6034e2c5e63485984e4d5ea7d..263654ab8c27d8028dd1fac89ba6c771dac4a201 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-01  James Lemke  <jwlemke@wasabisystems.com>
+
+       * subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL.
+
 2006-04-30  Thiemo Seufer  <ths@mips.com>
             David Ung  <davidu@mips.com>
 
index e0f721cd287d93e196f2e825ec8f10e5b6a58e84..9401d61a834c58252b21626b4386f9b18fc6e19c 100644 (file)
@@ -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;