public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45940] New: [trans-mem] Error of unsafe function even if annotated
@ 2010-10-08 12:51 vincent.gramoli at epfl dot ch
  2010-11-04 14:37 ` [Bug c++/45940] " patrick.marlier at gmail dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: vincent.gramoli at epfl dot ch @ 2010-10-08 12:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45940

           Summary: [trans-mem] Error of unsafe function even if annotated
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: vincent.gramoli@epfl.ch
                CC: rth@gcc.gnu.org, aldyh@gcc.gnu.org


When I compile a transactional program which use an annotated STL, GCC
compilation says that the function is not safe even if it is annotated.

I have attached the ii file (I tried to make it smaller but it didn't
figure out when it happens).

Here the compilation:
$ g++ -O0 -c -Wall -g -fgnu-tm -fno-builtin Building.ii
In file included from src/Building.cpp:77:0:
src/Building.cpp:1341:27: error: unsafe function call ‘void
std::list<_Tp, _Alloc>::push_front(const value_type&) [with _Tp =
Bullet*, _Alloc = std::allocator<Bullet*>, value_type = Bullet*]’ within
‘transaction_safe’ function

Extract from STL source:
__attribute__((transaction_pure))
       void
       push_front(const value_type& __x)
       { this->_M_insert(begin(), __x); }


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

end of thread, other threads:[~2011-01-24 12:05 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 12:51 [Bug c++/45940] New: [trans-mem] Error of unsafe function even if annotated vincent.gramoli at epfl dot ch
2010-11-04 14:37 ` [Bug c++/45940] " patrick.marlier at gmail dot com
2010-11-19 18:33 ` aldyh at gcc dot gnu.org
2010-11-23 13:59 ` aldyh at gcc dot gnu.org
2010-11-23 15:29 ` patrick.marlier at gmail dot com
2010-11-23 16:26 ` aldyh at gcc dot gnu.org
2010-11-24 14:01 ` aldyh at gcc dot gnu.org
2010-11-25 10:02 ` patrick.marlier at gmail dot com
2010-11-25 15:46 ` vincent.gramoli at epfl dot ch
2010-11-29 15:47 ` aldyh at gcc dot gnu.org
2010-11-29 16:27 ` aldyh at gcc dot gnu.org
2010-12-13 11:10 ` aldyh at gcc dot gnu.org
2010-12-13 14:16 ` aldyh at gcc dot gnu.org
2010-12-13 14:49 ` aldyh at gcc dot gnu.org
2010-12-13 14:50 ` aldyh at gcc dot gnu.org
2010-12-14 12:07 ` aldyh at gcc dot gnu.org
2011-01-14 18:28 ` aldyh at gcc dot gnu.org
2011-01-14 19:43 ` aldyh at gcc dot gnu.org
2011-01-20 10:41 ` vincent.gramoli at epfl dot ch
2011-01-20 14:44 ` aldyh at gcc dot gnu.org
2011-01-20 16:12 ` vincent.gramoli at epfl dot ch
2011-01-24 12:56 ` vincent.gramoli at epfl dot ch

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).