Bug 153103

Summary: llint: won't compile with gcc's LTO - patch needed
Product: WebKit Reporter: Marek Behun <kabel>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Minor CC: kabel
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
webkit-llint-gcc-lto.patch none

Marek Behun
Reported 2016-01-14 12:28:41 PST
Created attachment 268989 [details] webkit-llint-gcc-lto.patch When compiling WebKit with GCC's Link Time Optimizations, the functions included from DerivedSources/JavaScriptCore/LLIntAssembly.h, included from Source/JavaScriptCore/llint/LowLevelInterpreter.cpp, aren't expodes and linking of libJavaScriptCore fails. This patch checks if GCC is used and if it is of versions which supports LTO, and if it is, disables the -flto flag for one compilation unit, LowLevelInterpreter.cpp, with GCC's #pragma directive.
Attachments
webkit-llint-gcc-lto.patch (967 bytes, patch)
2016-01-14 12:28 PST, Marek Behun
no flags
Note You need to log in before you can comment on or make changes to this bug.