diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-06-09 13:22:00 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-06-09 13:22:00 +0000 |
commit | d2ae702c466d7d01de50427a048df0cfd5b90e24 (patch) | |
tree | b9db44b3aa2e47d6ae8bb075d4b3b691e1fee4b1 /gas/ChangeLog | |
parent | 5197bfb548f1f12137e65c843ae1a3c1899ea17e (diff) | |
download | gdb-d2ae702c466d7d01de50427a048df0cfd5b90e24.zip gdb-d2ae702c466d7d01de50427a048df0cfd5b90e24.tar.gz gdb-d2ae702c466d7d01de50427a048df0cfd5b90e24.tar.bz2 |
Allocate sufficient space for string buffer
* input-scrub.c (input_scrub_include_sb): Use sb_build to
allocate sufficient space for from_sb. Use sb_terminate to
terminate string.
* read.c (read_a_source_file): Use sb_build to allocate
sufficient space and replace sb_add_string with sb_add_buffer.
(s_macro): Likewise.
(input_scrub_insert_line): Likewise.
(s_irp): Use sb_build to allocate sufficient space.
(do_repeat): Use sb_build to allocate sufficient space
for many.
* sb.c (sb_build): Remove static.
* sb.h (sb_build): New prototype.
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r-- | gas/ChangeLog | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 00281a8..62705c2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,18 @@ +2012-06-09 H.J. Lu <hongjiu.lu@intel.com> + + * input-scrub.c (input_scrub_include_sb): Use sb_build to + allocate sufficient space for from_sb. Use sb_terminate to + terminate string. + * read.c (read_a_source_file): Use sb_build to allocate + sufficient space and replace sb_add_string with sb_add_buffer. + (s_macro): Likewise. + (input_scrub_insert_line): Likewise. + (s_irp): Use sb_build to allocate sufficient space. + (do_repeat): Use sb_build to allocate sufficient space + for many. + * sb.c (sb_build): Remove static. + * sb.h (sb_build): New prototype. + 2012-06-09 Alan Modra <amodra@gmail.com> * sb.c: Include limits.h. |