[Bug 288778] [libm] Fix undefined behavior of a left shifted of a signed integer

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Aug 2025 05:25:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288778

--- Comment #4 from Konstantin Belousov <kib@FreeBSD.org> ---
I got the following failure on ppc64 with this patch:

===> lib/msun (obj,all,install)
/usr/home/konstantinb/build/bsd/DEV/src/lib/msun/src/s_remquo.c:58:2: error:
expected expression
   58 |         else
      |         ^
/usr/home/konstantinb/build/bsd/DEV/src/lib/msun/src/s_remquo.c:64:2: error:
expected expression
   64 |         else
      |         ^
/usr/home/konstantinb/build/bsd/DEV/src/lib/msun/src/s_remquo.c:149:7: error:
expected '}'
  149 | #endif
      |       ^
/usr/home/konstantinb/build/bsd/DEV/src/lib/msun/src/s_remquo.c:56:20: note: to
match this '{'
   56 |         if(hx<0x00100000) {
      |                           ^
/usr/home/konstantinb/build/bsd/DEV/src/lib/msun/src/s_remquo.c:149:7: error:
expected '}'
  149 | #endif
      |       ^
/usr/home/konstantinb/build/bsd/DEV/src/lib/msun/src/s_remquo.c:29:1: note: to
match this '{'
   29 | {
      | ^
4 errors generated.
--- s_remquo.pico ---
*** [s_remquo.pico] Error code 1

-- 
You are receiving this mail because:
You are the assignee for the bug.