* oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
commitdd7f667eac96d16a952b0e129e42379bc9188791
authorjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 May 2015 10:35:39 +0000 (28 10:35 +0000)
committerjules <jules@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 May 2015 10:35:39 +0000 (28 10:35 +0000)
tree8c355aeab7e41119def2a5220f0f5b8b89c41c01
parent071f2c66c5e151bd1d24d3087589478c730f9fd1
* oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
function comment. Only call gomp_fatal if new argument is true.
(acc_dev_num_out_of_range): New function.
(acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
acc_dev_num_out_of_range as appropriate.
(acc_get_num_devices, acc_set_device_type, acc_get_device_type)
(acc_get_device_num, acc_set_device_num): Update calls to resolve_device.
* testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
output.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223803 138bc75d-0d04-0410-961f-82ee72b054a4
libgomp/ChangeLog
libgomp/oacc-init.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-4.c