Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1596b2e351a2aae3b449673f3775d49c5261cc8a
      
https://github.com/WebKit/WebKit/commit/1596b2e351a2aae3b449673f3775d49c5261cc8a
  Author: Carlos Alberto Lopez Perez <[email protected]>
  Date:   2026-01-09 (Fri, 09 Jan 2026)

  Changed paths:
    M Source/bmalloc/CMakeLists.txt

  Log Message:
  -----------
  [GCC] Fails to build bmalloc with -O1
https://bugs.webkit.org/show_bug.cgi?id=305194

Reviewed by Nikolas Zimmermann.

GCC fails to compile pas_*_large_free_heap.c with -O1 due to a conflict
between always_inline and indirect function calls. At -O1, GCC attempts to
honor always_inline but lacks sufficient interprocedural analysis to resolve
the function pointer target, causing a hard error. Using -O0 avoids inlining
entirely, while -O2 enables enough optimization to resolve the callee.

Workaround this issue by setting -O2 on this two files when the default
optimization level is -O1 and the compiler is GCC.

* Source/bmalloc/CMakeLists.txt:

Canonical link: https://commits.webkit.org/305359@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to