bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21513:


From: Martin Liška
Subject: bug#21513:
Date: Sat, 18 Jan 2020 15:44:20 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

I can confirm that it never finishes on i586.
I would recommend to replace   DEBUG_ASSERT (num >= 0);
which expands to:
  ((num >= 0) ? (void) 0 : __builtin_unreachable ());

into:

  if (num < 0)
    __builtin_abort ();

From GCC documentation:

If control flow reaches the point of the __builtin_unreachable,
the program is undefined.

In this case it loops forever.

Martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]