From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D7DE31384B4 for ; Sat, 28 Nov 2015 18:58:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E70D021C05D; Sat, 28 Nov 2015 18:58:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3801421C05D for ; Sat, 28 Nov 2015 18:58:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C2D73408FF for ; Sat, 28 Nov 2015 18:58:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 60399A95 for ; Sat, 28 Nov 2015 18:58:24 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1448737067.64d981bfd079735598dd81c0c56d2b534b3f482c.jlec@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/fortran-2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 64d981bfd079735598dd81c0c56d2b534b3f482c X-VCS-Branch: master Date: Sat, 28 Nov 2015 18:58:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 80c3ff58-0c94-4f27-8e5c-db75d88e75da X-Archives-Hash: 2340616e676ebdd8edb81b714445fafa commit: 64d981bfd079735598dd81c0c56d2b534b3f482c Author: Justin Lecher gentoo org> AuthorDate: Sat Nov 28 18:54:23 2015 +0000 Commit: Justin Lecher gentoo org> CommitDate: Sat Nov 28 18:57:47 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64d981bf fortran-2.eclass: fortran_int64_abi_fflags() add fortran_int64_abi_fflags help you querry for the necessary compiler flags to enable 64bit int support Signed-off-by: Justin Lecher gentoo.org> eclass/fortran-2.eclass | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/eclass/fortran-2.eclass b/eclass/fortran-2.eclass index ac89bf1..6f3c4b2 100644 --- a/eclass/fortran-2.eclass +++ b/eclass/fortran-2.eclass @@ -77,6 +77,22 @@ for _f_use in ${FORTRAN_NEEDED}; do esac done +# @FUNCTION: fortran_int64_abi_fflags +# @DESCRIPTION: Return the Fortran compiler flag to enable 64 bit integers for +# array indices +# @CODE +fortran_int64_abi_fflags() { + debug-print-function ${FUNCNAME} "${@}" + _FC=$(tc-getFC) + if [[ ${_FC} == *gfortran* ]]; then + echo "-fdefault-integer-8" + elif [[ ${_FC} == ifort ]]; then + echo "-integer-size 64" + else + die "Compiler flag for 64bit interger for ${_FC} unknown" + fi +} + # @FUNCTION: _fortran_write_testsuite # @INTERNAL # @DESCRIPTION: