diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-12 11:09:50 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-06-12 11:09:50 +0000 |
commit | 2f5bed2ab25158051293c85678c5413213b48cfc (patch) | |
tree | 5d0ac2b598eae02f929f24f72597e3783e98c0ff /gcc/data-streamer.h | |
parent | 9e9c3e92e9fbf4254b4ae185aeb345e2e08629e5 (diff) | |
download | gcc-2f5bed2ab25158051293c85678c5413213b48cfc.tar.gz |
2013-06-12 Richard Biener <rguenther@suse.de>
* data-streamer.h (streamer_write_char_stream): CSE
obs->current_pointer.
* data-streamer-out.c (streamer_write_uhwi_stream): Inline
streamer_write_char_stream manually and optimize the resulting loop.
(streamer_write_hwi_stream): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/data-streamer.h')
-rw-r--r-- | gcc/data-streamer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/data-streamer.h b/gcc/data-streamer.h index dfca7abbd2c..c18779ba30a 100644 --- a/gcc/data-streamer.h +++ b/gcc/data-streamer.h @@ -183,8 +183,9 @@ streamer_write_char_stream (struct lto_output_stream *obs, char c) lto_append_block (obs); /* Write the actual character. */ - *obs->current_pointer = c; - obs->current_pointer++; + char *current_pointer = obs->current_pointer; + *(current_pointer++) = c; + obs->current_pointer = current_pointer; obs->total_size++; obs->left_in_block--; } |