diff options
| author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-12 23:18:26 +0000 |
|---|---|---|
| committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-02-12 23:18:26 +0000 |
| commit | 316ebbe510a28a0cf98c59f2e11db87791578ab0 (patch) | |
| tree | 1eb478f06fc9a3bbfdb8e87eb73dde4310ba3b62 /gcc/f/sts.c | |
| parent | bc4ca53013e3f3e399f1786316771c1a69b10564 (diff) | |
| download | ppe42-gcc-316ebbe510a28a0cf98c59f2e11db87791578ab0.tar.gz ppe42-gcc-316ebbe510a28a0cf98c59f2e11db87791578ab0.zip | |
* com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
* expr.c (ffeexpr_type_combine): Likewise.
(ffeexpr_reduce_): Likewise.
(ffeexpr_declare_parenthesized_): Likewise.
* src.c (ffesrc_strcmp_1ns2i): Likewise.
(ffesrc_strcmp_2c): Likewise.
(ffesrc_strncmp_2c): Likewise.
* stb.c (ffestb_halt1_): Likewise.
(ffestb_R90910_): Likewise.
(ffestb_R9109_): Likewise.
* stc.c (ffestc_R544_equiv_): Likewise.
* std.c (ffestd_subr_copy_easy_): Likewise.
(ffestd_R1001dump_): Likewise.
(ffestd_R1001dump_1005_1_): Likewise.
(ffestd_R1001dump_1005_2_): Likewise.
(ffestd_R1001dump_1005_3_): Likewise.
(ffestd_R1001dump_1005_4_): Likewise.
(ffestd_R1001dump_1005_5_): Likewise.
(ffestd_R1001dump_1010_2_): Likewise.
* ste.c (ffeste_R840): Likewise.
* sts.c (ffests_puttext): Likewise.
* symbol.c (ffesymbol_check_token_): Likewise.
* target.c (ffetarget_real1): Likewise.
(ffetarget_real2): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17884 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/f/sts.c')
| -rw-r--r-- | gcc/f/sts.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gcc/f/sts.c b/gcc/f/sts.c index 769712c1da1..dabb919d566 100644 --- a/gcc/f/sts.c +++ b/gcc/f/sts.c @@ -252,19 +252,21 @@ ffests_puttext (ffests s, char *text, ffestsLength length) newlen = s->len_ + length; if (newlen > s->max_) - if (s->text_ == NULL) - { - s->max_ = 40; - s->text_ = malloc_new_ksr (s->pool_, "ffests", s->max_); - } - else - { - newmax = s->max_ << 1; - while (newmax < newlen) - newmax <<= 1; - s->text_ = malloc_resize_ksr (s->pool_, s->text_, newmax, s->max_); - s->max_ = newmax; - } + { + if (s->text_ == NULL) + { + s->max_ = 40; + s->text_ = malloc_new_ksr (s->pool_, "ffests", s->max_); + } + else + { + newmax = s->max_ << 1; + while (newmax < newlen) + newmax <<= 1; + s->text_ = malloc_resize_ksr (s->pool_, s->text_, newmax, s->max_); + s->max_ = newmax; + } + } memcpy (s->text_ + s->len_, text, length); s->len_ = newlen; |

