This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/48244] New: iso-c-binding support missing on NetBSD (with patch)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]