search for: errorcount

Displaying 9 results from an estimated 9 matches for "errorcount".

Did you mean: error_count
2018 Aug 08
2
LLD COFF library: crashes when lld::coff::link is called twice
...4 AM, Andrew Kelley via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Here's a fix: > > --- a/lld/COFF/Driver.cpp > +++ b/lld/COFF/Driver.cpp > @@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, > raw_ostream &Diag) { > exitLld(errorCount() ? 1 : 0); > > freeArena(); > + ObjFile::Instances.clear(); > + ImportFile::Instances.clear(); > + BitcodeFile::Instances.clear(); > return !errorCount(); > } > > I don't know how to make a test for this, since it depends on running LLD > twice in the sa...
2018 Jul 25
2
LLD COFF library: crashes when lld::coff::link is called twice
...o be an arena allocator, which is freed here: bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) { // ... Driver = make<LinkerDriver>(); Driver->link(Args); // Call exit() if we can to avoid calling destructors. if (CanExitEarly) exitLld(errorCount() ? 1 : 0); freeArena(); // <------ here return !errorCount(); } Is there a simple fix for this? Downstream issue reference: https://github.com/ziglang/zig/issues/1289 Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.or...
2020 Nov 19
1
Learning to build applications
...uot;,messages[enum_cast(error_code)][ErrorMessage].toStdString().c_str(),"",-1), ^ src/exception.cpp: In static member function ?static QString Exception::getErrorMessage(ErrorCode)?: src/exception.cpp:371:25: error: ?enum_cast? was not declared in this scope if(enum_cast(error_code) < ErrorCount) ^ src/exception.cpp: In static member function ?static QString Exception::getErrorCode(ErrorCode)?: src/exception.cpp:382:25: error: ?enum_cast? was not declared in this scope if(enum_cast(error_code) < ErrorCount) ^ src/exception.cpp: In static member function ?static QString Exception::getErr...
2017 Oct 16
2
LLD COFF not closing mmaps to input files?
I think you want to call freeArena() before returning from lld::coff::link. On Sun, Oct 15, 2017 at 6:57 PM, Andrew Kelley via llvm-dev < llvm-dev at lists.llvm.org> wrote: > I believe this line is the culprit: > > COFF/Driver.cpp:102: > make<std::unique_ptr<MemoryBuffer>>(std::move(MB)); // take ownership > > Patch forthcoming. > > > On Sun, Oct
2009 Jan 09
0
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...assert(!LV.isBitfield() && "Expected an aggregate operand!"); > bool isVolatile = TREE_THIS_VOLATILE(Op); > - unsigned Alignment = expr_align(Op) / 8; > + unsigned Alignment = LV.getAlignment(); This also looks like it was already ok. > if (errorcount || sorrycount) { > - const PointerType *Ty = > - PointerType::getUnqual(ConvertType(TREE_TYPE(exp))); > - return ConstantPointerNull::get(Ty); > + const Type *Ty = ConvertType(TREE_TYPE(exp)); > + const PointerType *PTy = PointerType::getUnqual(Ty); > +...
2009 Jan 09
2
[LLVMdev] RFC: Store alignment should be LValue alignment, not source alignment
...) / 8; + unsigned Alignment = LV.getAlignment(); EmitAggregateCopy(Target, MemRef(LV.Ptr, Alignment, isVolatile), TREE_TYPE(exp)); @@ -5885,9 +5896,10 @@ LValue TreeToLLVM::EmitLV_DECL(tree exp) Value *Decl = DECL_LLVM(exp); if (Decl == 0) { if (errorcount || sorrycount) { - const PointerType *Ty = - PointerType::getUnqual(ConvertType(TREE_TYPE(exp))); - return ConstantPointerNull::get(Ty); + const Type *Ty = ConvertType(TREE_TYPE(exp)); + const PointerType *PTy = PointerType::getUnqual(Ty); + LValue LV(ConstantPointer...
2019 Jun 24
4
Expected behavior of lld during LTO for global symbols (Attr Internal/Common)
...s + // in the output. + replaceCommonSymbols(); + // Do link-time optimization if given files are LLVM bitcode files. // This compiles bitcode files into real object files. // @@ -1798,6 +1803,11 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) { if (errorCount()) return; + // LTO may have introduced new common symbols, so convert them + // to regular defined symbols. + if (!BitcodeFiles.empty()) + replaceCommonSymbols(); // If -thinlto-index-only is given, we should create only "index // files" and not object files. Index file...
2007 Nov 20
1
Problems with losing D-Channel on
...To avoid problems with the phone line (german E1) I called the provider, he did a 45 min. route test with incoming and outgoing calls over all lines without any problem over the whole time. I also got a phone call with the providers service partner for the S2M part. He reset the line and putt he errorcounter to 0. After the test it was still on 0. When we plugged in the card again, there were again errors on the counter after ~ 5-10 minutes. After this, i put the asterisk, zaptel and libpri versions to newest versions, now it's working a bit better, but after 1 day fine work, it crashes again al...
2019 Jun 21
2
Expected behavior of lld during LTO for global symbols (Attr Internal/Common)
Thanks for the info Teresa, Regards M Suresh From: Teresa Johnson <tejohnson at google.com> Sent: Thursday, June 20, 2019 7:15 PM To: Mani, Suresh <Suresh.Mani at amd.com> Cc: Rui Ueyama <ruiu at google.com>; llvm-dev <llvm-dev at lists.llvm.org> Subject: Re: [llvm-dev] Expected behavior of lld during LTO for global symbols (Attr Internal/Common) [CAUTION: External