diff options
author | YamaArashi <shadow962@live.com> | 2016-02-08 03:04:42 -0800 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-02-08 03:04:42 -0800 |
commit | a5c638ceaca09d018d041f15e7e2518c217250bc (patch) | |
tree | 7374fe6cd30b24a25037dbdb259bbcf5300b13c2 /gcc/cp/inc/new | |
parent | 476b5c86e5bc21311dfb14d0f043fbf5b870781d (diff) |
remove Fortran, Objective C, and C++
Diffstat (limited to 'gcc/cp/inc/new')
-rwxr-xr-x | gcc/cp/inc/new | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/gcc/cp/inc/new b/gcc/cp/inc/new deleted file mode 100755 index c19205b..0000000 --- a/gcc/cp/inc/new +++ /dev/null @@ -1,60 +0,0 @@ -/* CYGNUS LOCAL Embedded C++ whole file */ -// The -*- C++ -*- dynamic memory management header. -// Copyright (C) 1994, 96-97, 1998 Free Software Foundation - -#ifndef __NEW__ -#define __NEW__ - -#pragma interface "new" -#include <stddef.h> - -#ifndef __EMBEDDED_CXX__ -// Exception Handling is forbidden in Embedded C++. -#include <exception> -#define __GCC_THROW(what) throw (what) -#define __GCC_nothing -#else -#define __GCC_THROW(what) -#endif - -extern "C++" { - -namespace std { - -#ifndef __EMBEDDED_CXX__ - class bad_alloc : public exception { - public: - virtual const char* what() const throw() { return "bad_alloc"; } - }; -#endif - - struct nothrow_t {}; - extern const nothrow_t nothrow; - - typedef void (*new_handler)(); - new_handler set_new_handler (new_handler); - -} // namespace std - -// replaceable signatures -void *operator new (size_t) __GCC_THROW (std::bad_alloc); -void *operator new[] (size_t) __GCC_THROW (std::bad_alloc); -void operator delete (void *) __GCC_THROW(__GCC_nothing); -void operator delete[] (void *) __GCC_THROW(__GCC_nothing); -void *operator new (size_t, const nothrow_t&) __GCC_THROW(__GCC_nothing); -void *operator new[] (size_t, const nothrow_t&) __GCC_THROW(__GCC_nothing); -void operator delete (void *, const nothrow_t&) __GCC_THROW(__GCC_nothing); -void operator delete[] (void *, const nothrow_t&) __GCC_THROW(__GCC_nothing); - -// default placement versions of operator new -inline void *operator new(size_t, void *place) __GCC_THROW(__GCC_nothing) { - return place; -} -inline void *operator new[](size_t, void *place) __GCC_THROW(__GCC_nothing) { - return place; -} - -} // extern "C++" - -#endif -/* END CYGNUS LOCAL */ |