From: Nathan Sidwell Date: Thu, 17 Dec 2020 13:31:42 +0000 (-0800) Subject: libcody: Remove nop asm X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5357b1620c547a6f2bd81e7868c800e2eee97e51;p=gcc.git libcody: Remove nop asm This asm was a useful place for gdb to drop a breakpoint and make it clear where you were when debugging. I took a punt that 'surely every arch has a nop instruction'. Well, no, some apparently have nops with operands (what, do nothing harder? :) libcody/ * fatal.cc (HCF): Remove nop breakpoint lander. --- diff --git a/libcody/fatal.cc b/libcody/fatal.cc index b35094e6b19..c1bc8ab8a79 100644 --- a/libcody/fatal.cc +++ b/libcody/fatal.cc @@ -30,7 +30,8 @@ void (HCF) (char const *msg #endif ) noexcept { // HCF - you goofed! - __asm__ volatile ("nop"); // HCF - you goofed! + // A useful place for a breakpoint to land. + //__asm__ volatile ("nop"); // HCF - you goofed! #if !NMS_CHECKING constexpr Location loc (nullptr, 0);