Implement circular print buffer.
authorAndrew Stubbs <ams@codesourcery.com>
Mon, 18 Mar 2019 13:13:27 +0000 (13:13 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Mon, 18 Mar 2019 13:13:27 +0000 (13:13 +0000)
commitf9cacebbde8427e0537e79fe87dd1c89251a2582
tree6c5e24f93ba2899ab7eed74ea970ec3fdfef6bf2
parentc57546fe94712a723bc2e123445dc5d9b0a0ca1a
Implement circular print buffer.

2019-03-18  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/gcn/gcn-run.c (struct output): Make next_output unsigned.
Extend queue to 1024 entries.
Add "consumed" field.
(gomp_print_output): Remove print_index parameter.
Add final parameter.
Change limit to unsigned.
Use consumed field to implement circular buffer.
Detect interrupted print in final pass.
Flush output at the end.
(run): Update gomp_print_output usage.
(main): Initialize kernargs->output_data.consumed.

From-SVN: r269764
gcc/ChangeLog
gcc/config/gcn/gcn-run.c