public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ro at CeBiTec dot Uni-Bielefeld.DE" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/47491] [4.6 Regression] libgfortran: getpwuid_r (for GETLOG) breaks bootstrapping Date: Thu, 27 Jan 2011 16:43:00 -0000 [thread overview] Message-ID: <bug-47491-4-6szsX7R2ca@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-47491-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47491 --- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-01-27 16:28:39 UTC --- > --- Comment #2 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-01-27 16:10:41 UTC --- > Some git-grepping showed that at least libjava has in configure.ac > > AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [Required define if using POSIX > threads]) > > and in case Boehm GC is not used (which libgfortran never uses): > > AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads]) > > However, if I understand gcc/config/ correctly, _REENTRANT should be > automatically set for all targets that need it. At least on Solaris (and I think on other targets as well), only with -pthread. > Also in gcc/config a few targets set > > -D_POSIX_C_SOURCE=199506L > > (not Solaris, though). But apparently we shouldn't go and set this somewhere in > libgfortran? That is, at least no other library does this.. That may not provide the best guidance. I'd rather look for autoconf and/or gnulib here. On Solaris, this may not be enough: starting with Solaris 10, there's POSIX.1-2001 support via -D_POSIX_C_SOURCE=200112L. > Moreover, in config/extensions.m4 there is the macro > > AC_USE_SYSTEM_EXTENSIONS > > that seems to define _POSIX_PTHREAD_SEMANTICS on Solaris. > > This seems to me the most sensible solution. Would that work? Seems so. At least I've just found that I need -D__EXTENSIONS__ in addition to -D_XOPEN_SOURCE=600 to get EIP defined in <sys/regset.h> (needed by fpu-target.h). Rainer
next prev parent reply other threads:[~2011-01-27 16:29 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-01-27 15:02 [Bug fortran/47491] New: " burnus at gcc dot gnu.org 2011-01-27 15:03 ` [Bug fortran/47491] " burnus at gcc dot gnu.org 2011-01-27 16:11 ` ro at CeBiTec dot Uni-Bielefeld.DE 2011-01-27 16:19 ` jb at gcc dot gnu.org 2011-01-27 16:43 ` ro at CeBiTec dot Uni-Bielefeld.DE [this message] 2011-01-27 17:22 ` jb at gcc dot gnu.org 2011-01-27 17:57 ` jb at gcc dot gnu.org 2011-01-27 20:08 ` jb at gcc dot gnu.org 2011-02-02 18:08 ` dnovillo at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-47491-4-6szsX7R2ca@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).