diff options
author | Alan Modra <amodra@gmail.com> | 2006-05-01 05:41:40 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-05-01 05:41:40 +0000 |
commit | c35da14031bf1f026af52fcce346803f47b5ae94 (patch) | |
tree | 202e954ed3fa44b15221d206a66a8d65c4ba1341 | |
parent | 004314cccdac93ac8d2d7c63776b52f0c202f050 (diff) | |
download | gdb-c35da14031bf1f026af52fcce346803f47b5ae94.zip gdb-c35da14031bf1f026af52fcce346803f47b5ae94.tar.gz gdb-c35da14031bf1f026af52fcce346803f47b5ae94.tar.bz2 |
* subsegs.c (subseg_set_rest): Always set seginfp->frchainP if NULL.
-rw-r--r-- | gas/ChangeLog | 4 | ||||
-rw-r--r-- | gas/subsegs.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 5b8ad03..263654a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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> 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; |