Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ee58c2ab83717762d360197159639854543a3c24
https://github.com/WebKit/WebKit/commit/ee58c2ab83717762d360197159639854543a3c24
Author: Adrian Perez de Castro <[email protected]>
Date: 2023-03-15 (Wed, 15 Mar 2023)
Changed paths:
M Source/WebCore/Modules/speech/SpeechRecognition.cpp
M Source/WebCore/Modules/speech/SpeechRecognition.h
M Source/WebCore/Modules/speech/SpeechRecognitionConnectionClient.h
Log Message:
-----------
REGRESSION(257515@main): breaks build with -flto=auto
https://bugs.webkit.org/show_bug.cgi?id=249368
Reviewed by Philippe Normand.
Workaround compiler/linker issue with LTO enabled with certain versions
of GCC and Binutils on Linux. Tested using a Yocto build targeting
AArch64 (Raspberry Pi 4), with LTO enabled, which uses GCC 11.3.0 and
Binutils 2.38.
* Source/WebCore/Modules/speech/SpeechRecognition.cpp:
(WebCore::SpeechRecognition::~SpeechRecognition): Define an empty
virtual destructor.
* Source/WebCore/Modules/speech/SpeechRecognition.h: Declare a virtual
destructor for the class.
* Source/WebCore/Modules/speech/SpeechRecognitionConnectionClient.h:
(WebCore::SpeechRecognitionConnectionClient::~SpeechRecognitionConnectionClient):
Once the complaint about the missing SpeechRecognition vtable was fixed,
the linker started complaning about a missing virtual destructor for
SpeechRecognitionConnectionClient, which is definitely a compiler bug
given that it was defaulted; but using an empty inline destructor in the
header workarounds the issue.
Canonical link: https://commits.webkit.org/261724@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes