Bug#888543: webkit2gtk: Please reduce optimization level to -O1 on sh3 and sh4

Alberto Garcia berto at igalia.com
Sat Jan 27 16:24:28 UTC 2018

On Fri, Jan 26, 2018 at 11:04:44PM +0100, John Paul Adrian Glaubitz wrote:

Hey, thanks for the bug report and the patch!

> Source: webkit2gtk
> Version: 2.18.6-1
> Severity: normal
> Tags: patch
> User: debian-superh at lists.debian.org
> Usertags: sh3 sh4

Is sh3 being built by Debian at all? :-?

> webkit2gtk currently FTBFS on sh3/sh4 due to an upstream gcc bug [1]:
> While the upstream bug has not been fixed yet, it can be worked
> around by reducing the optimization level on sh3/sh4 to -O1 which is
> what the attached patch does.

I can apply the patch as-is, but that will affect the whole codebase.
I wonder if you prefer / have tried to disable -O2 only on the file(s)
that cause problems? This can be useful:


Your patch will go in the next release, so if you change your mind and
instead of using -O1 globallly you prefer to try with #pragma optimize
tell me!


More information about the Pkg-webkit-maintainers mailing list