Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2263: On PA-RISC with GCC 4.3.1, thread primitives are misdetected
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-17 22:41:54
#2263: On PA-RISC with GCC 4.3.1, thread primitives are misdetected
----------------------------------+-----------------------------------------
Reporter: river_at_[hidden] | Owner: pdimov
Type: Bugs | Status: assigned
Milestone: Boost 1.37.0 | Component: None
Version: Boost 1.36.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Comment(by river_at_[hidden]):
it does not:
{{{
river_at_maiden:~>cat test.c
int i;
int main() {
__sync_lock_test_and_set(&i, 1);
return 0;
}
river_at_maiden:~>gcc test.c -o test -W -Wall
/usr/ccs/bin/ld: Unsatisfied symbols:
__sync_lock_test_and_set_4 (first referenced in /var/tmp//ccgdGbo1.o)
(code)
collect2: ld returned 1 exit status
river_at_maiden:~>gcc -v
Using built-in specs.
Target: hppa1.1-hp-hpux11.11
Configured with: /tmp/gcc-4.3.1.tar.gz/gcc-4.3.1/configure --host=hppa1.1
-hp-hpux11.11 --target=hppa1.1-hp-hpux11.11 --build=hppa1.1-hp-hpux11.11
--prefix=/opt/hp-gcc-4.3.1 --with-gnu-as --without-gnu-ld --with-
ld=/usr/ccs/bin/ld --enable-threads=posix --enable-languages=c,c++ --with-
gmp=/proj/opensrc/be/hppa1.1-hp-hpux11.11 --with-
mpfr=/proj/opensrc/be/hppa1.1-hp-hpux11.11
Thread model: posix
gcc version 4.3.1 (GCC)
}}}
(PA-RISC does provide a single atomic operation - 'load and clear word'
(ldcw), which is roughly equivalent to `__sync_lock_test_and_set(&x, 1)`.
Unfortunately, I'm not comfortable enough with the platform to provide an
implementation.)
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2263#comment:5> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC