X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=boehm-gc%2Fgc_cpp.cc;fp=boehm-gc%2Fgc_cpp.cc;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a97091c817c9037d20f22a07ade12fb8ff2d3215;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/boehm-gc/gc_cpp.cc b/boehm-gc/gc_cpp.cc deleted file mode 100644 index a97091c8..00000000 --- a/boehm-gc/gc_cpp.cc +++ /dev/null @@ -1,49 +0,0 @@ -/************************************************************************* -Copyright (c) 1994 by Xerox Corporation. All rights reserved. - -THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - - Last modified on Sat Nov 19 19:31:14 PST 1994 by ellis - on Sat Jun 8 15:10:00 PST 1994 by boehm - -Permission is hereby granted to copy this code for any purpose, -provided the above notices are retained on all copies. - -This implementation module for gc_c++.h provides an implementation of -the global operators "new" and "delete" that calls the Boehm -allocator. All objects allocated by this implementation will be -non-collectable but part of the root set of the collector. - -You should ensure (using implementation-dependent techniques) that the -linker finds this module before the library that defines the default -built-in "new" and "delete". - -Authors: John R. Ellis and Jesse Hull - -**************************************************************************/ -/* Boehm, December 20, 1994 7:26 pm PST */ - -#include "gc_cpp.h" - -#ifndef _MSC_VER -/* In the Visual C++ case, we moved this into the header. */ -void* operator new( size_t size ) { - return GC_MALLOC_UNCOLLECTABLE( size );} - -void operator delete( void* obj ) { - GC_FREE( obj );} - -#ifdef OPERATOR_NEW_ARRAY - -void* operator new[]( size_t size ) { - return GC_MALLOC_UNCOLLECTABLE( size );} - -void operator delete[]( void* obj ) { - GC_FREE( obj );} - -#endif /* OPERATOR_NEW_ARRAY */ - -#endif /* _MSC_VER */ - -