[PATCH] PR51280 LTO/trans-mem ICE with TM builtins

Patrick Marlier patrick.marlier@gmail.com
Thu Dec 15 21:51:00 GMT 2011


In PR51280, LTO does ICE because the object file uses TM builtin but the 
TM is not enabled.
In the patch, it displays a error message if the builtin is not defined 
and due to TM.
I moved is_tm_builtin() from calls.c to trans-mem.c. I splitted it into 
2 functions is_tm_builtin/is_tm_builtin_code. In is_tm_builtin_code, I 
added some missing builtins (TM_START, TM_GETTMCLONE_SAFE, TM_MALLOC, 
TM_CALLOC, TM_FREE). Finally, I declared them into tree.h to be usable 
in calls.c and tree-streamer-in.c.

Bootstrapped and LTO/TM regtested on Linux/i686.
(If ok, please commit it. Thanks.)

Patrick Marlier.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr51280.Changelog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111215/f446d2a4/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr51280.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111215/f446d2a4/attachment-0001.ksh>


More information about the Gcc-patches mailing list