This is the mail archive of the gcc-cvs@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]

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


Author: rth
Date: Thu Jul  9 00:42:12 2009
New Revision: 149397

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149397
Log:
	* c-common.c (handle_tm_attribute): Rename from
	handle_tm_fntype_attribute; handle class types.
	(tm_attr_to_mask): Rename from tm_attribute_mask; export.
	(tm_mask_to_attr, find_tm_attribute): New.
	* c-common.h: Add decls for new functions.
	(TM_ATTR_SAFE, TM_ATTR_CALLABLE, TM_ATTR_PURE,
	TM_ATTR_IRREVOKABLE, TM_ATTR_UNKNOWN): New.

	* cp/class.c (check_bases): Compute tm attributes for the class
	based on its base classes.
	(apply_tm_attr, look_for_tm_attr_overrides): New.
	(set_one_vmethod_tm_attributes, set_method_tm_attributes): New.
	(finish_struct_1): Call it.

	* testsuite/g++.dg/tm/attrib-[1234].C: New.
	* testsuite/gcc.dg/tm/attrib-1.c: Update warning text.

Added:
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/attrib-1.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/attrib-2.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/attrib-3.C
    branches/transactional-memory/gcc/testsuite/g++.dg/tm/attrib-4.C
Modified:
    branches/transactional-memory/gcc/ChangeLog.tm
    branches/transactional-memory/gcc/c-common.c
    branches/transactional-memory/gcc/c-common.h
    branches/transactional-memory/gcc/cp/class.c
    branches/transactional-memory/gcc/testsuite/gcc.dg/tm/attrib-1.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]