libgomp/
* target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
to 0 when mapnum is 0.
Co-Authored-By: Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
From-SVN: r228825
+2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
+ Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
+
+ * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
+ to 0 when mapnum is 0.
+
2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
tgt->device_descr = devicep;
if (mapnum == 0)
- return tgt;
+ {
+ tgt->tgt_start = 0;
+ tgt->tgt_end = 0;
+ return tgt;
+ }
tgt_align = sizeof (void *);
tgt_size = 0;