[gomp] Fix build for 32-bit targets with int != int32_t
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Wed, 14 Oct 2015 08:30:52 +0000 (08:30 +0000)
committerSebastian Huber <sh@gcc.gnu.org>
Wed, 14 Oct 2015 08:30:52 +0000 (08:30 +0000)
libgomp/
2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>

* fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
Cast to int from int32_t.

From-SVN: r228805

libgomp/ChangeLog
libgomp/fortran.c

index df4e9370f81409a0ae8c840d899f71100e65cbf6..5480c526ade9dd79b7fd6aaa2e34be892c998336 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
+
+       * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
+       Cast to int from int32_t.
+
 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
            Aldy Hernandez  <aldyh@redhat.com>
            Ilya Verbin  <ilya.verbin@intel.com>
index ceff9ac48e66d97bd02dc05083c5b96e792bd800..87882a11a76c08484aba6f4207d3001a59d8d9e1 100644 (file)
@@ -481,7 +481,7 @@ omp_get_place_num_procs_8_ (const int64_t *place_num)
 void
 omp_get_place_proc_ids_ (const int32_t *place_num, int32_t *ids)
 {
-  omp_get_place_proc_ids (*place_num, ids);
+  omp_get_place_proc_ids (*place_num, (int *) ids);
 }
 
 void
@@ -505,7 +505,7 @@ omp_get_partition_num_places_ (void)
 void
 omp_get_partition_place_nums_ (int32_t *place_nums)
 {
-  omp_get_partition_place_nums (place_nums);
+  omp_get_partition_place_nums ((int *) place_nums);
 }
 
 void