[libitm] Provide all dummy functions in alloc_cpp.cc, eh_cpp.cc

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Wed Nov 16 19:06:00 GMT 2011


I must have been dreaming the first time I looked at libitm testsuite
results on Tru64 UNIX.  Of course it cannot work to provide only a
single dummy function, but all weak definitions must be backed by dummy
definitions on that platform.  The following patch does just that, and
allows at least some libitm execution tests to pass, despite the lack
for named section supported also note in PR other/51174:

		=== libitm tests ===

Schedule of variations:
    unix

Running target unix
Running /vol/gcc/src/hg/trunk/local/libitm/testsuite/libitm.c/c.exp ...
FAIL: libitm.c/cancel.c (internal compiler error)
FAIL: libitm.c/cancel.c (test for excess errors)
WARNING: libitm.c/cancel.c compilation failed to produce executable
FAIL: libitm.c/clone-1.c (internal compiler error)
FAIL: libitm.c/clone-1.c (test for excess errors)
WARNING: libitm.c/clone-1.c compilation failed to produce executable
PASS: libitm.c/dropref-2.c (test for excess errors)
XFAIL: libitm.c/dropref-2.c execution test
PASS: libitm.c/dropref.c (test for excess errors)
XFAIL: libitm.c/dropref.c execution test
PASS: libitm.c/memcpy-1.c (test for excess errors)
PASS: libitm.c/memcpy-1.c execution test
PASS: libitm.c/memset-1.c (test for excess errors)
PASS: libitm.c/memset-1.c execution test
PASS: libitm.c/notx.c (test for excess errors)
PASS: libitm.c/notx.c execution test
FAIL: libitm.c/reentrant.c (internal compiler error)
FAIL: libitm.c/reentrant.c (test for excess errors)
WARNING: libitm.c/reentrant.c compilation failed to produce executable
PASS: libitm.c/simple-1.c (test for excess errors)
PASS: libitm.c/simple-1.c execution test
PASS: libitm.c/simple-2.c (test for excess errors)
PASS: libitm.c/simple-2.c execution test
PASS: libitm.c/txrelease.c (test for excess errors)
PASS: libitm.c/txrelease.c execution test
Running /vol/gcc/src/hg/trunk/local/libitm/testsuite/libitm.c++/c++.exp ...
PASS: libitm.c++/dropref.C (test for excess errors)
XFAIL: libitm.c++/dropref.C execution test
FAIL: libitm.c++/eh-1.C (internal compiler error)
FAIL: libitm.c++/eh-1.C (test for excess errors)
WARNING: libitm.c++/eh-1.C compilation failed to produce executable
XFAIL: libitm.c++/static_ctor.C (test for excess errors)
WARNING: libitm.c++/static_ctor.C compilation failed to produce executable
FAIL: libitm.c++/throwdown.C (internal compiler error)
FAIL: libitm.c++/throwdown.C (test for excess errors)

		=== libitm Summary ===

# of expected passes		15
# of unexpected failures	10
# of expected failures		4

Ok for mainline?

	Rainer


2011-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* alloc_cpp.cc [__osf__] (_ZnwX, _ZdlPv, _ZnaX, _ZdaPv,
	_ZnwXRKSt9nothrow_t, _ZdlPvRKSt9nothrow_t, _ZdaPvRKSt9nothrow_t):
	Dummy functions.
	* eh_cpp.cc [__osf__] (__cxa_allocate_exception, __cxa_throw,
	__cxa_begin_catch, __cxa_end_catch, __cxa_tm_cleanup): Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libitm-dummy.patch
Type: text/x-patch
Size: 1469 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111116/371c4f5a/attachment.bin>
-------------- next part --------------


-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


More information about the Gcc-patches mailing list