public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug lto/51698] New: [trans-mem] TM runtime and application with LTO @ 2011-12-29 3:24 patrick.marlier at gmail dot com 2012-01-19 14:39 ` [Bug lto/51698] " aldyh at gcc dot gnu.org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: patrick.marlier at gmail dot com @ 2011-12-29 3:24 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51698 Bug #: 51698 Summary: [trans-mem] TM runtime and application with LTO Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned@gcc.gnu.org ReportedBy: patrick.marlier@gmail.com CC: aldyh@gcc.gnu.org, rth@gcc.gnu.org, torvald@gcc.gnu.org Created attachment 26198 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26198 testcase app-itm with lto In my attempt to make _ITM_R/W* calls inlined into the application code, it seems that the TM builtins and TM defintions don't work as expected with LTO. $ gcc -flto -fgnu-tm -Wall -o bin appitm.c `_ITM_beginTransaction' referenced in section `.text' of /tmp/cc7uGSe1.ltrans0.ltrans.o: defined in discarded section `.text' of /tmp/ccJk2crp.o (symbol from plugin) `_ITM_RU4' referenced in section `.text' of /tmp/cc7uGSe1.ltrans0.ltrans.o: defined in discarded section `.text' of /tmp/ccJk2crp.o (symbol from plugin) `_ITM_commitTransaction' referenced in section `.text' of /tmp/cc7uGSe1.ltrans0.ltrans.o: defined in discarded section `.text' of /tmp/ccJk2crp.o (symbol from plugin) collect2: error: ld returned 1 exit status I have merged all .c in the same source for the testcase but it has the same problem if TM runtime is in a library. Patrick Marlier. ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51698] [trans-mem] TM runtime and application with LTO 2011-12-29 3:24 [Bug lto/51698] New: [trans-mem] TM runtime and application with LTO patrick.marlier at gmail dot com @ 2012-01-19 14:39 ` aldyh at gcc dot gnu.org 2012-01-19 14:48 ` aldyh at gcc dot gnu.org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: aldyh at gcc dot gnu.org @ 2012-01-19 14:39 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51698 Aldy Hernandez <aldyh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot |aldyh at gcc dot gnu.org |gnu.org | --- Comment #1 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-01-19 14:23:15 UTC --- mine ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51698] [trans-mem] TM runtime and application with LTO 2011-12-29 3:24 [Bug lto/51698] New: [trans-mem] TM runtime and application with LTO patrick.marlier at gmail dot com 2012-01-19 14:39 ` [Bug lto/51698] " aldyh at gcc dot gnu.org @ 2012-01-19 14:48 ` aldyh at gcc dot gnu.org 2012-01-25 21:24 ` aldyh at gcc dot gnu.org 2012-01-25 21:35 ` aldyh at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: aldyh at gcc dot gnu.org @ 2012-01-19 14:48 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51698 Aldy Hernandez <aldyh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-01-19 Ever Confirmed|0 |1 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51698] [trans-mem] TM runtime and application with LTO 2011-12-29 3:24 [Bug lto/51698] New: [trans-mem] TM runtime and application with LTO patrick.marlier at gmail dot com 2012-01-19 14:39 ` [Bug lto/51698] " aldyh at gcc dot gnu.org 2012-01-19 14:48 ` aldyh at gcc dot gnu.org @ 2012-01-25 21:24 ` aldyh at gcc dot gnu.org 2012-01-25 21:35 ` aldyh at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: aldyh at gcc dot gnu.org @ 2012-01-25 21:24 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51698 --- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-01-25 20:33:02 UTC --- Author: aldyh Date: Wed Jan 25 20:32:57 2012 New Revision: 183537 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183537 Log: PR lto/51698 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New. (BT_FN_VOID_PTR_CONST_PTR_SIZE): New. (BT_FN_VOID_PTR_INT_SIZE): New. (BT_FN_UINT_UINT_VAR): Remove. (BT_FN_UINT32_UINT32_VAR): New. (BT_FN_DOUBLE_VPTR): Remove. (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New. * gtm-builtins.def (_ITM_abortTransaction): Set return type to void. (_ITM_changeTransactionMode): Same. (_ITM_memmoveRtWt): Change return type to void. (_ITM_memcpyRtWt): Same. (_ITM_memsetW): Same. (_ITM_RaRD): Change types to double. (_ITM_RD): Same. (_ITM_RaWD): Same. (_ITM_RfWD): Same. * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true. testsuite/ PR lto/51698 * gcc.dg/lto/trans-mem-4_0.c: New. * gcc.dg/lto/trans-mem-4_1.c: New. * gcc.dg/lto/trans-mem-2_0.c: Provide correct argument types for TM builtins. * gcc.dg/lto/trans-mem-1_0.c: Require stdint_types. * gcc.dg/lto/trans-mem-1_1.c: Provide correct argument types for TM builtins. * gcc.dg/lto/trans-mem-3_0.c: Require stdint_types. * gcc.dg/lto/trans-mem-3_1.c: Provide correct argument types for TM builtins. Added: trunk/gcc/testsuite/gcc.dg/lto/trans-mem-4_0.c trunk/gcc/testsuite/gcc.dg/lto/trans-mem-4_1.c Modified: trunk/gcc/ChangeLog trunk/gcc/builtin-types.def trunk/gcc/builtins.def trunk/gcc/gtm-builtins.def trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/lto/trans-mem-1_0.c trunk/gcc/testsuite/gcc.dg/lto/trans-mem-1_1.c trunk/gcc/testsuite/gcc.dg/lto/trans-mem-2_0.c trunk/gcc/testsuite/gcc.dg/lto/trans-mem-3_0.c trunk/gcc/testsuite/gcc.dg/lto/trans-mem-3_1.c ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug lto/51698] [trans-mem] TM runtime and application with LTO 2011-12-29 3:24 [Bug lto/51698] New: [trans-mem] TM runtime and application with LTO patrick.marlier at gmail dot com ` (2 preceding siblings ...) 2012-01-25 21:24 ` aldyh at gcc dot gnu.org @ 2012-01-25 21:35 ` aldyh at gcc dot gnu.org 3 siblings, 0 replies; 5+ messages in thread From: aldyh at gcc dot gnu.org @ 2012-01-25 21:35 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51698 Aldy Hernandez <aldyh at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-01-25 20:34:50 UTC --- fixed ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-25 20:35 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-12-29 3:24 [Bug lto/51698] New: [trans-mem] TM runtime and application with LTO patrick.marlier at gmail dot com 2012-01-19 14:39 ` [Bug lto/51698] " aldyh at gcc dot gnu.org 2012-01-19 14:48 ` aldyh at gcc dot gnu.org 2012-01-25 21:24 ` aldyh at gcc dot gnu.org 2012-01-25 21:35 ` aldyh at gcc dot gnu.org
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).