
Hi all,
I am new to boost libraries and I find them very powerful.
I'm using the Boost.Interprocess library to make some interprocess
communication and synchronization.
I'm using mutexes and I was able to let my program build and work as
expected. This is good when I build it in Debug mode, when I switch to
release mode, i.e. using the -O2 or -O3 flag to optimize performances, the
compiler returns this error:
"boost/interprocess/detail/atomic.hpp:316: internal compiler error: in
rewrite_stmt, at tree-into-ssa.c:1380"
Please submit a full bug report,
with preprocessed source if appropriate.
When I use a debug compilation, without -O2, it works fine. Why that?
I read somewhere that I could try to define BOOST_SP_USE_PTHREADS but I
tryed and nothing changes.
Is it something related to the operating system?
I see that the error brings me to
inline boost::uint32_t atomic_cas32
(volatile boost::uint32_t *mem, boost::uint32_t with, boost::uint32_t
cmp)
{ return __sync_val_compare_and_swap(const_cast