Bug#1082305: webkit2gtk: Please remove compiler overrides for sh4

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Thu Sep 19 20:24:51 BST 2024


Source: webkit2gtk
Version: 2.46.0-1
Severity: normal
Tags: patch
User: debian-superh at lists.debian.org
Usertags: sh4
X-Debbugs-Cc: debian-superh at lists.debian.org

Hello,

with GCC upstream being improved on sh4 thanks to the LRA switch [1], it's time
to remove the compiler overrides for sh4 (and sh3):

--- webkit2gtk-2.46.0/debian/rules.orig 2024-09-17 15:42:38.000000000 +0200
+++ webkit2gtk-2.46.0/debian/rules      2024-09-19 21:20:08.768120005 +0200
@@ -87,16 +87,6 @@
        EXTRA_CMAKE_ARGUMENTS += -DWTF_CPU_ARM64_CORTEXA53=OFF
 endif
 
-# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93876
-# and: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93877
-ifneq (,$(filter $(DEB_HOST_ARCH),sh3 sh4))
-       CFLAGS := $(CFLAGS:-g1=-g0)
-       CFLAGS := $(CFLAGS:-O2=-O1)
-       CXXFLAGS := $(CXXFLAGS:-g1=-g0)
-       CXXFLAGS := $(CXXFLAGS:-O2=-O1)
-       CPPFLAGS += --param ggc-min-expand=10
-endif
-
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
        EXTRA_CMAKE_ARGUMENTS += -DUSE_SYSTEM_MALLOC=ON
        CPPFLAGS += -DRELEASE_WITHOUT_OPTIMIZATIONS

Attaching a patch.

Thanks,
Adrian

> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
--- webkit2gtk-2.46.0/debian/rules.orig	2024-09-17 15:42:38.000000000 +0200
+++ webkit2gtk-2.46.0/debian/rules	2024-09-19 21:20:08.768120005 +0200
@@ -87,16 +87,6 @@
 	EXTRA_CMAKE_ARGUMENTS += -DWTF_CPU_ARM64_CORTEXA53=OFF
 endif
 
-# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93876
-# and: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93877
-ifneq (,$(filter $(DEB_HOST_ARCH),sh3 sh4))
-	CFLAGS := $(CFLAGS:-g1=-g0)
-	CFLAGS := $(CFLAGS:-O2=-O1)
-	CXXFLAGS := $(CXXFLAGS:-g1=-g0)
-	CXXFLAGS := $(CXXFLAGS:-O2=-O1)
-	CPPFLAGS += --param ggc-min-expand=10
-endif
-
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 	EXTRA_CMAKE_ARGUMENTS += -DUSE_SYSTEM_MALLOC=ON
 	CPPFLAGS += -DRELEASE_WITHOUT_OPTIMIZATIONS


More information about the Pkg-webkit-maintainers mailing list