From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14815 invoked by alias); 22 Mar 2011 18:51:03 -0000 Received: (qmail 14807 invoked by uid 22791); 22 Mar 2011 18:51:02 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Mar 2011 18:50:57 +0000 From: "kuehro at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/48244] New: iso-c-binding support missing on NetBSD (with patch) X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kuehro at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 22 Mar 2011 20:03:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg02343.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48244 Summary: iso-c-binding support missing on NetBSD (with patch) Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned@gcc.gnu.org ReportedBy: kuehro@gmx.de Created attachment 23752 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23752 add netbsd-stdint.h to config.gcc The following patches add iso-c-binding support to gfortran on NetBSD (5.1 and current both i386 and amd64) by reusing the relevant parts from freebsd. First one needs to copy gcc/config/freebsd-stdint.h to gcc/config/netbsd-stdint.h and then apply the attached patch against the gcc-4.5.2 release. This passes all relevant tests without causing any regression. It also worked on a real world code (xraylib-2.13.1). gfortran was built with: gfortran -v: Using built-in specs. COLLECT_GCC=/usr/pkg/gcc45/bin/gfortran COLLECT_LTO_WRAPPER=/usr/pkg/gcc45/libexec/gcc/x86_64-unknown-netbsd5.99.47/4.5.2/lto-wrapper Target: x86_64-unknown-netbsd5.99.47 Configured with: /usr/pkgsrc/wip/gcc45/work/gcc-4.5.2/configure --enable-nls --prefix=/usr/pkg/gcc45 --enable-languages='c c++ fortran objc' --with-system-zlib --enable-shared --enable-__cxa_atexit --enable-long-long --with-local-prefix=/usr/pkg/gcc45 --disable-libssp --enable-threads=posix --with-gmp=/usr/pkg --with-mpfr=/usr/pkg --with-ld=/usr/pkg/bin/gnu-ld --with-libelf=/usr/pkg Thread model: posix gcc version 4.5.2 (GCC) A patch for the cabs issue (as described in PR 39570) was also applied, otherwise all fortran tests would fail due to a runtime warning. If someone wants to test on NetBSD please use wip/gcc45 from pkgsrc-wip.sourceforge.net. I can supply additional information if necessary. Thanks to everyone who was involved to make this work on FreeBSD. Kai-Uwe Eckhardt