On Dez 15 2020, Nathan Sidwell wrote: > diff --git c/libcody/fatal.cc w/libcody/fatal.cc > new file mode 100644 > index 00000000000..b35094e6b19 > --- /dev/null > +++ w/libcody/fatal.cc > @@ -0,0 +1,78 @@ > +// CODYlib -*- mode:c++ -*- > +// Copyright (C) 2019-2020 Nathan Sidwell, nat...@acm.org > +// License: Apache v2.0 > + > +// Cody > +#include "internal.hh" > +// C > +#include <csignal> > +#include <cstdint> > +#include <cstdio> > +#include <cstdlib> > +#include <cstring> > + > +namespace Cody { > + > +#if NMS_CHECKING > +void (AssertFailed) (Location loc) noexcept > +{ > + (HCF) ("assertion failed", loc); > +} > +void (Unreachable) (Location loc) noexcept > +{ > + (HCF) ("unreachable reached", loc); > +} > +#endif > + > +void (HCF) (char const *msg > +#if NMS_CHECKING > + , Location const loc > +#endif > + ) noexcept > +{ // HCF - you goofed! > + __asm__ volatile ("nop"); // HCF - you goofed!
/tmp/ccabCPZ7.s: Assembler messages: /tmp/ccabCPZ7.s:28: Error: Wrong number of input operands Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."