aboutsummaryrefslogtreecommitdiff
path: root/gas/subsegs.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-05-01 05:41:40 +0000
committerAlan Modra <amodra@gmail.com>2006-05-01 05:41:40 +0000
commitc35da14031bf1f026af52fcce346803f47b5ae94 (patch)
tree202e954ed3fa44b15221d206a66a8d65c4ba1341 /gas/subsegs.c
parent004314cccdac93ac8d2d7c63776b52f0c202f050 (diff)
downloadgdb-c35da14031bf1f026af52fcce346803f47b5ae94.zip
gdb-c35da14031bf1f026af52fcce346803f47b5ae94.tar.gz
gdb-c35da14031bf1f026af52fcce346803f47b5ae94.tar.bz2
* subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL.
Diffstat (limited to 'gas/subsegs.c')
-rw-r--r--gas/subsegs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c
index e0f721c..9401d61 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;