public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48244] New: iso-c-binding support missing on NetBSD (with patch)
@ 2011-03-22 20:03 kuehro at gmx dot de
       [not found] ` <bug-48244-4-P4y7yfb3Nf@http.gcc.gnu.org/bugzilla/>
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: kuehro at gmx dot de @ 2011-03-22 20:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-01-09  4:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 20:03 [Bug fortran/48244] New: iso-c-binding support missing on NetBSD (with patch) kuehro at gmx dot de
     [not found] ` <bug-48244-4-P4y7yfb3Nf@http.gcc.gnu.org/bugzilla/>
2013-06-30  1:20   ` [Bug fortran/48244] " Krister Walfridsson
2013-06-30  1:20 ` krister.walfridsson at gmail dot com
2013-07-03 21:09 ` kuehro at gmx dot de
2013-07-03 21:19 ` kuehro at gmx dot de
2014-12-06  0:16 ` dominiq at lps dot ens.fr
2014-12-06 10:02 ` kuehro at gmx dot de
2014-12-06 11:24 ` dominiq at lps dot ens.fr
2014-12-08  6:42 ` kuehro at gmx dot de
2014-12-11 15:54 ` kuehro at gmx dot de
2015-08-29 13:46 ` dominiq at lps dot ens.fr
2022-01-09  4:47 ` [Bug target/48244] " pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).