From: Ilya Verbin Date: Wed, 14 Oct 2015 18:37:10 +0000 (+0000) Subject: target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end to 0 when mapnum... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3837c6d66f4db682dfb2862529fddd354bb6b7ef;p=gcc.git target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end to 0 when mapnum is 0. 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 From-SVN: r228825 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 5480c526ade..de3ca406ed3 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2015-10-14 Ilya Verbin + Aleksander Ivanushenko + + * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end + to 0 when mapnum is 0. + 2015-10-14 Sebastian Huber * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_): diff --git a/libgomp/target.c b/libgomp/target.c index de6a2c9c9c5..b7674100326 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -324,7 +324,11 @@ gomp_map_vars (struct gomp_device_descr *devicep, size_t mapnum, 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;