Bug 46300 - Calls to internals _ITM_cxa_throw and _ITM_cxa_allocate_exception are not marked as safe
Summary: Calls to internals _ITM_cxa_throw and _ITM_cxa_allocate_exception are not mar...
Status: CLOSED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: trans-mem
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: trans-mem
Depends on:
Blocks:
 
Reported: 2010-11-04 09:16 UTC by Martin Nowack
Modified: 2010-12-14 00:02 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2010-12-13 15:21:54


Attachments
mark _ITM_cxa_throw and _ITM_cxa_allocate_exception as tm_callable (317 bytes, application/octet-stream)
2010-11-04 09:16 UTC, Martin Nowack
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Nowack 2010-11-04 09:16:10 UTC
Created attachment 22272 [details]
mark _ITM_cxa_throw and _ITM_cxa_allocate_exception as tm_callable

Both calls are inserted into the code when coping with exceptions but are not marked as transaction_safe therefore abort the compilation.

Attached patch should fix that.
Comment 1 Patrick Marlier 2010-11-25 09:39:10 UTC
I think these functions should be marked as transaction_pure and not transaction_safe since they are managed by the TM library.

Patrick Marlier.
Comment 2 Aldy Hernandez 2010-12-13 15:21:54 UTC
Fixed here and waiting approval:
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00989.html
Comment 3 Aldy Hernandez 2010-12-14 00:02:19 UTC
closed and fixed