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]

[Patch, testsuite, ObjC++] Add TLS tests.


ObjC++ currently has no checks for TLS.

This patch follows the logic that ObjC++ is defined to be a superset of C++ and thus ObjC+ should pass the same set of tests as C++ (with specific additions for cases where tls is embedded within the ObjC++ syntax).

The patch adds syntax checks in obj-c++.dg/tls and a smaller number of compile checks in dg-torture/tls

tested on {powerpc,i686}-apple-darwin9 and i686-pc-linux-gnu.

At present, there are two failing [torture] tests on linux when lto is enabled (these are most likely indicative of a general failure of lto with ObjC/C++).

gcc/testsuite/Changelog:

	* obj-c++.dg/torture/tls/trivial.mm: New.
	* obj-c++.dg/torture/tls/thr-init-1.mm: New.
	* obj-c++.dg/torture/tls/thr-init-2.mm: New.
	* obj-c++.dg/torture/tls/thr-init-3.mm: New.
	* obj-c++.dg/torture/tls/diag-1.mm: New.
	* obj-c++.dg/torture/tls/tls.exp: New.
	* obj-c++.dg/torture/trivial.mm: New.
	* obj-c++.dg/torture/dg-torture.exp: New.
	* obj-c++.dg/dg.exp: Gather tests explicitly from the source dir.
	* obj-c++.dg/tls/trivial.m: New.
	* obj-c++.dg/tls/init-1.mm: New.
	* obj-c++.dg/tls/diag-1.mm: New.
	* obj-c++.dg/tls/init-2.mm: New.
	* obj-c++.dg/tls/diag-2.mm: New.
	* obj-c++.dg/tls/diag-3.mm: New.
	* obj-c++.dg/tls/diag-4.mm: New.
	* obj-c++.dg/tls/static-1.mm: New.
	* obj-c++.dg/tls/tls.exp: New.
	* obj-c++.dg/tls/diag-5.mm: New.
	* obj-c++.dg/tls/static-1a.mm: New.
	* objc-obj-c++-shared/Object1.mm: New.
	* lib/obj-c++-dg.exp (obj-c++-dg-runtest): New proc.

Attachment: 159377-objc++-tls-testsuite-diff.txt
Description: Text document





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