This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/77473] New PRNG causes regressions on DragonFly BSD
- From: "rimvydas.jas at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 01 Oct 2016 16:58:06 +0000
- Subject: [Bug libfortran/77473] New PRNG causes regressions on DragonFly BSD
- Auto-submitted: auto-generated
- References: <bug-77473-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77473
--- Comment #4 from Rimvydas (RJ) <rimvydas.jas at gmail dot com> ---
Yes it is an issue in gthr-posix.h how presence of pthread is checked on
DragonFly.
libc contains pthread_cancel() stub and it is strange why we detected failures
only now on testsuite after new PRNG in libgfortran.
Currently we checking if we could exclude pthread_cancel symbol from libc
without breaking to much stuff (this would automatically fix previous gcc ports
and base compilers on DragonFly 4.7+).
Other variants are to use pthread_create() (as in BIONIC case) or special
variable from libc (z2.diff), however that depends on what __gthread_active_p()
should mean:
1) the pthread library is present and initialized
2) present but might not be initialized yet