This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Wed, Feb 15, 2012 at 11:59:15AM -0600, Aldy Hernandez wrote:Hmmm, isn't %K for trees? We're talking gimple, and FUNCTION_DECLs, which don't have a TREE_BLOCK, here.
Gimple stmts have gimple_block, I guess you'd need to create some tree and set its TREE_BLOCK and EXPR_LOCATION from gimple_block/gimple_location. Or add something similar to %K that would take the same info from gimple stmt and pass a stmt instead of a tree.
Jakub
#GOOD houston:/build/t2/gcc$ ./cc1 a.c -fgnu-tm -O0 -quiet -w In function 'asmfunc', inlined from 'f' at a.c:13:10: a.c:7:3: error: asm not allowed in 'transaction_safe' function
#BAD houston:/build/t2/gcc$ ./cc1 a.c -fgnu-tm -O1 -quiet -w a.c: In function 'f': a.c:7:3: error: asm not allowed in 'transaction_safe' function houston:/build/t2/gcc$
(gdb) ptg block BLOCK #3 SUPERCONTEXT: BLOCK #0 ABSTRACT_ORIGIN: BLOCK #0
(gdb) ptg block BLOCK #0 SUPERCONTEXT: f SUBBLOCKS: BLOCK #3
houston:/build/t2/gcc$ ./cc1 a.c -fgnu-tm -O2 -quiet -w a.c:7:3: error: asm not allowed in atomic transaction
Attachment:
curr
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |