Commit cf547164 by Rainer Orth Committed by Rainer Orth

Adapt c-c++-common/tm/malloc.c for Solaris headers with C++

	* c-c++-common/tm/malloc.c: Scan tree dumps for std::malloc if
	*-*-solaris2* && c++.

From-SVN: r181579
parent ca20a08e
2011-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* c-c++-common/tm/malloc.c: Scan tree dumps for std::malloc if
*-*-solaris2* && c++.
2011-11-20 Joey Ye <joey.ye@arm.com>
* gcc.dg/volatile-bitfields-1.c: New.
......
......@@ -17,7 +17,9 @@ void foobar(void)
z = (char *)malloc (666);
}
/* { dg-final { scan-tree-dump-times " malloc .666" 1 "tmmark" } } */
/* { dg-final { scan-tree-dump-times " malloc .666" 1 "tmmark" { target { ! { *-*-solaris2* && c++ } } } } } */
/* Solaris 2 headers are C++-aware and declare std::malloc. */
/* { dg-final { scan-tree-dump-times " std::malloc .666" 1 "tmmark" { target { *-*-solaris2* && c++ } } } } */
/* { dg-final { scan-tree-dump-times "__builtin__ITM_malloc" 1 "tmmark" } } */
/* { dg-final { scan-tree-dump-times "__builtin__ITM_calloc" 1 "tmmark" } } */
/* { dg-final { scan-tree-dump-times "__builtin__ITM_free" 2 "tmmark" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment