completely finish New and NewMore.cp, for some reason NewMore fails checksum
This commit is contained in:
parent
66b5150733
commit
1853ee6391
4 changed files with 25 additions and 7 deletions
10
configure.py
10
configure.py
|
|
@ -669,16 +669,12 @@ config.libs = [
|
|||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/__va_arg.c"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/global_destructor_chain.c"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/__mem.c"),
|
||||
Object(NonMatching, "Runtime.PPCEABI.H/New.cp"),
|
||||
Object(NonMatching, "Runtime.PPCEABI.H/NewMore.cp"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/New.cp", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/NewMore.cp", extra_cflags=["-Cpp_exceptions on", "-RTTI on"]),
|
||||
Object(NonMatching, "Runtime.PPCEABI.H/NMWException.cpp"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/runtime.c"),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/__init_cpp_exceptions.cpp"),
|
||||
Object(
|
||||
NonMatching,
|
||||
"Runtime.PPCEABI.H/Gecko_ExceptionPPC.cpp",
|
||||
extra_cflags=["-Cpp_exceptions on"]
|
||||
),
|
||||
Object(NonMatching, "Runtime.PPCEABI.H/Gecko_ExceptionPPC.cpp", extra_cflags=["-Cpp_exceptions on"]),
|
||||
Object(MatchingFor("GMPE01_00", "GMPE01_01"), "Runtime.PPCEABI.H/GCN_mem_alloc.c"),
|
||||
],
|
||||
},
|
||||
|
|
|
|||
1
include/PowerPC_EABI_Support/Runtime/New.h
Normal file
1
include/PowerPC_EABI_Support/Runtime/New.h
Normal file
|
|
@ -0,0 +1 @@
|
|||
void operator delete(void* arg0);
|
||||
8
src/Runtime.PPCEABI.H/New.cp
Normal file
8
src/Runtime.PPCEABI.H/New.cp
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#include "PowerPC_EABI_Support/Msl/MSL_C/MSL_Common/alloc.h"
|
||||
#include "PowerPC_EABI_Support/Runtime/New.h"
|
||||
|
||||
void operator delete(void* arg0) throw() {
|
||||
if (arg0 != 0) {
|
||||
free(arg0);
|
||||
}
|
||||
}
|
||||
13
src/Runtime.PPCEABI.H/NewMore.cp
Normal file
13
src/Runtime.PPCEABI.H/NewMore.cp
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include "PowerPC_EABI_Support/Runtime/New.h"
|
||||
|
||||
namespace std {
|
||||
class exception {
|
||||
public:
|
||||
virtual ~exception();
|
||||
virtual const char *what() const {
|
||||
return "exception";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
std::exception::~exception() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue