r149201 - in /branches/transactional-memory/gcc...

rth@gcc.gnu.org rth@gcc.gnu.org
Fri Jul 3 00:01:00 GMT 2009


Author: rth
Date: Fri Jul  3 00:01:50 2009
New Revision: 149201

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149201
Log:
        * c-typeck.c (c_finish_tm_atomic): Use build_stmt.

        * cp/parser.c (struct cp_parser): Add in_tm_atomic.
        (cp_parser_tm_atomic, cp_parser_tm_abort): New.
        (cp_parser_statement): Use them. 
        (cp_parser_function_tm_atomic): New.
        (cp_parser_function_definition_after_declarator): Use it.
        (cp_parser_token_starts_function_definition_p): Allow __tm_atomic.
        * cp/semantics.c (begin_tm_atomic_stmt): New.
        (finish_tm_atomic_stmt): New.
        * cp/cp-tree.h: Update decls.

        * gimple.c (walk_gimple_op): Handle GIMPLE_TM_ATOMIC.
        * gimple.h (gimple_has_substatements): Add GIMPLE_TM_ATOMIC.
        (gimple_tm_atomic_label_ptr): New.
        * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_TM_ATOMIC.

        * testsuite/gcc.dg/tm/ipa-2.c: Add -asmname flag.
        * testsuite/g++.dg/dg.exp: Run tm tests.
        * testsuite/g++.dg/tm/: New subdirectory.

Added:
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/abort-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/abort-2.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/atomic-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/atomic-2.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/fatomic-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/tm.exp
Modified:
    branches/transactional-memory/gcc/ChangeLog.tm
    branches/transactional-memory/gcc/c-parser.c
    branches/transactional-memory/gcc/c-typeck.c
    branches/transactional-memory/gcc/cp/cp-tree.h
    branches/transactional-memory/gcc/cp/parser.c
    branches/transactional-memory/gcc/cp/semantics.c
    branches/transactional-memory/gcc/gimple.c
    branches/transactional-memory/gcc/gimple.h
    branches/transactional-memory/gcc/testsuite/g++.dg/dg.exp
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/ipa-2.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/tm.exp
    branches/transactional-memory/gcc/tree-inline.c



More information about the Gcc-cvs mailing list