diff options
| author | Amlal <amlal@nekernel.org> | 2025-05-04 12:31:10 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-05-04 12:31:10 +0200 |
| commit | ea991f7e7c882c6e36ed2f6042d025edc9baf49f (patch) | |
| tree | 3f5e7962c20e724c120f5f9f7f02a800726bd69b /dev/LibCompiler/src | |
| parent | fb12b9730d78052f5cafbd84fbc9a830a22cec17 (diff) | |
bug(LibCompiler/C++): Segfault raised when compiling C++ source.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src')
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 4 | ||||
| -rw-r--r-- | dev/LibCompiler/src/DynamicLinkerPEF.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index b4725a4..0afdf3e 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -837,7 +837,7 @@ class AssemblyCPlusPlusInterface final ASSEMBLY_INTERFACE { delete kState.fSyntaxTree; kState.fSyntaxTree = nullptr; - if (kAcceptableErrors > 0) return 1; + if (kAcceptableErrors > 0) return kExitNO; return kExitOK; } @@ -928,8 +928,8 @@ LIBCOMPILER_MODULE(CompilerCPlusPlusAMD64) { kErrorLimit = 100; - kFactory.Mount(new AssemblyCPlusPlusInterface()); kCompilerFrontend = new CompilerFrontendCPlusPlus(); + kFactory.Mount(new AssemblyCPlusPlusInterface()); ::signal(SIGSEGV, Detail::segfault_handler); diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc index 1b2418f..21572bb 100644 --- a/dev/LibCompiler/src/DynamicLinkerPEF.cc +++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc @@ -75,7 +75,7 @@ struct DynamicLinkerBlob final { enum { kABITypeNull = 0, - kABITypeStart = 0x1010, /* Invalid ABI start of ABI list. */ + kABITypeStart = 0x1010, /* The start of ABI list. */ kABITypeNE = 0x5046, /* PF (NeKernel's PEF ABI) */ kABITypeInvalid = 0xFFFF, }; |
