From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119492 invoked by alias); 14 Oct 2015 07:34:54 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 119480 invoked by uid 89); 14 Oct 2015 07:34:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.2 required=5.0 tests=AWL,BAYES_50,FOREIGN_BODY,KAM_LAZY_DOMAIN_SECURITY,RDNS_DYNAMIC,T_FILL_THIS_FORM_SHORT autolearn=no version=3.3.2 X-HELO: mail.embedded-brains.de Received: from host-82-135-62-35.customer.m-online.net (HELO mail.embedded-brains.de) (82.135.62.35) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 14 Oct 2015 07:34:52 +0000 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id F394C2A097C; Wed, 14 Oct 2015 09:35:08 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5yLk5QS6Zifc; Wed, 14 Oct 2015 09:35:08 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 7E6D42A181A; Wed, 14 Oct 2015 09:35:08 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id wNPCQX9mOsu7; Wed, 14 Oct 2015 09:35:08 +0200 (CEST) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 61DDF2A097C; Wed, 14 Oct 2015 09:35:08 +0200 (CEST) Subject: Re: Merge from gomp-4_1-branch to trunk To: Jakub Jelinek , gcc-patches@gcc.gnu.org References: <20151013191214.GL478@tucnak.redhat.com> From: Sebastian Huber Message-ID: <561E0598.6030003@embedded-brains.de> Date: Wed, 14 Oct 2015 07:34:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151013191214.GL478@tucnak.redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg01314.txt.bz2 Hello, I get now the following error: libtool: compile: /scratch/git-build/b-gcc-git-arm-rtems4.12/./gcc/xgcc=20 -B/scratch/git-build/b-gcc-git-arm-rtems4.12/./gcc/ -nostdinc=20 -B/scratch/git-build/b-gcc-git-arm-rtems4.12/arm-rtems4.12/newlib/=20 -isystem=20 /scratch/git-build/b-gcc-git-arm-rtems4.12/arm-rtems4.12/newlib/targ-includ= e=20 -isystem /home/EB/sebastian_h/archive/gcc-git/newlib/libc/include=20 -B/opt/rtems-4.12/arm-rtems4.12/bin/=20 -B/opt/rtems-4.12/arm-rtems4.12/lib/ -isystem=20 /opt/rtems-4.12/arm-rtems4.12/include -isystem=20 /opt/rtems-4.12/arm-rtems4.12/sys-include -DHAVE_CONFIG_H -I.=20 -I/home/EB/sebastian_h/archive/gcc-git/libgomp=20 -I/home/EB/sebastian_h/archive/gcc-git/libgomp/config/rtems=20 -I/home/EB/sebastian_h/archive/gcc-git/libgomp/config/posix=20 -I/home/EB/sebastian_h/archive/gcc-git/libgomp=20 -I/home/EB/sebastian_h/archive/gcc-git/libgomp/../include -Wall -Werror=20 -g -O2 -MT fortran.lo -MD -MP -MF .deps/fortran.Tpo -c=20 /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c -o fortran.o /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c: In function=20 'omp_get_place_proc_ids_': /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c:484:39: error:=20 passing argument 2 of 'omp_get_place_proc_ids' from incompatible pointer=20 type [-Werror=3Dincompatible-pointer-types] omp_get_place_proc_ids (*place_num, ids); ^ In file included from=20 /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c:28:0: /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c:73:18: note:=20 expected 'int *' but argument is of type 'int32_t * {aka long int *}' ialias_redirect (omp_get_place_proc_ids) ^ /home/EB/sebastian_h/archive/gcc-git/libgomp/libgomp.h:1011:24: note: in=20 definition of macro 'ialias_redirect' extern __typeof (fn) fn __asm__ (ialias_ulp "gomp_ialias_" #fn)=20 attribute_hidden; ^ /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c: In function=20 'omp_get_partition_place_nums_': /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c:508:33: error:=20 passing argument 1 of 'omp_get_partition_place_nums' from incompatible=20 pointer type [-Werror=3Dincompatible-pointer-types] omp_get_partition_place_nums (place_nums); ^ In file included from=20 /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c:28:0: /home/EB/sebastian_h/archive/gcc-git/libgomp/fortran.c:76:18: note:=20 expected 'int *' but argument is of type 'int32_t * {aka long int *}' ialias_redirect (omp_get_partition_place_nums) ^ /home/EB/sebastian_h/archive/gcc-git/libgomp/libgomp.h:1011:24: note: in=20 definition of macro 'ialias_redirect' extern __typeof (fn) fn __asm__ (ialias_ulp "gomp_ialias_" #fn)=20 attribute_hidden; We have for example (libgomp/omp_lib.f90.in): subroutine omp_get_place_proc_ids (place_num, ids) integer (4), intent(in) :: place_num integer (4), intent(out) :: ids(*) end subroutine omp_get_place_proc_ids So this interface is different to (libgomp/omp.h.in): extern void omp_get_place_proc_ids (int, int *) __GOMP_NOTHROW; The following patch fixes the problem, but I am not sure if this is=20 really the best way to address this issue: diff --git a/libgomp/fortran.c b/libgomp/fortran.c index ceff9ac..44aaf92 100644 --- a/libgomp/fortran.c +++ b/libgomp/fortran.c @@ -481,7 +481,9 @@ 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); + int int_ids; + omp_get_place_proc_ids (*place_num, &int_ids); + *ids =3D int_ids; } void @@ -505,7 +507,9 @@ omp_get_partition_num_places_ (void) void omp_get_partition_place_nums_ (int32_t *place_nums) { - omp_get_partition_place_nums (place_nums); + int int_place_nums; + omp_get_partition_place_nums (&int_place_nums); + *place_nums =3D int_place_nums; } void --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=E4ftliche Mitteilung im Sinne des EHUG.