diff options
| author | Amlal <amlal@nekernel.org> | 2025-05-01 08:35:38 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-05-01 08:35:38 +0200 |
| commit | 35ac989886dcab70ff4ba6bc6a1359d1290560ad (patch) | |
| tree | 4ba89bacb3209e8d5763bf9759776c453a1aa413 /dev/LibCompiler/src/CCompilerPower64.cc | |
| parent | 6af5722b2b29731b3d96abfa7c2a512f5984312b (diff) | |
ld64: Make linker more robust, and extend PEF to version 4.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/CCompilerPower64.cc')
| -rw-r--r-- | dev/LibCompiler/src/CCompilerPower64.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dev/LibCompiler/src/CCompilerPower64.cc b/dev/LibCompiler/src/CCompilerPower64.cc index ee9c5a4..f10aa79 100644 --- a/dev/LibCompiler/src/CCompilerPower64.cc +++ b/dev/LibCompiler/src/CCompilerPower64.cc @@ -10,6 +10,7 @@ #include <LibCompiler/Backend/PowerPC.h> #include <LibCompiler/Parser.h> #include <LibCompiler/UUID.h> +#include <LibCompiler/Detail/ClUtils.h> #include <cstdio> #include <fstream> #include <iostream> @@ -77,9 +78,7 @@ struct CompilerState final { } // namespace Detail static Detail::CompilerState kState; -static SizeType kErrorLimit = 100; static std::string kIfFunction = ""; -static Int32 kAcceptableErrors = 0; namespace Detail { /// @brief prints an error into stdout. @@ -1220,6 +1219,8 @@ static void cc_print_help() { #define kExt ".c" LIBCOMPILER_MODULE(NeOSCompilerCLangPowerPC) { + ::signal(SIGSEGV, Detail::segfault_handler); + kCompilerTypes.push_back({.fName = "void", .fValue = "void"}); kCompilerTypes.push_back({.fName = "char", .fValue = "byte"}); kCompilerTypes.push_back({.fName = "short", .fValue = "hword"}); |
