Hello community, here is the log from the commit of package Mesa for openSUSE:Factory checked in at 2020-05-29 21:20:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/Mesa (Old) and /work/SRC/openSUSE:Factory/.Mesa.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "Mesa" Fri May 29 21:20:15 2020 rev:381 rq:809625 version:unknown Changes: -------- --- /work/SRC/openSUSE:Factory/Mesa/Mesa-drivers.changes 2020-05-17 23:42:50.885019096 +0200 +++ /work/SRC/openSUSE:Factory/.Mesa.new.3606/Mesa-drivers.changes 2020-05-29 21:35:54.738388264 +0200 @@ -1,0 +2,12 @@ +Tue May 19 19:22:02 UTC 2020 - Martin Liška <[email protected]> + +- Add U_add-lifetime-dse-fix.patch as a proper fix for boo#1171855. + +------------------------------------------------------------------- +Tue May 19 05:52:31 UTC 2020 - Martin Liška <[email protected]> + +- Disable LTO for now as there's a known upstream bug + that hasn't been resolved with GCC 10: + boo#1171855. + +------------------------------------------------------------------- Mesa.changes: same change New: ---- U_add-lifetime-dse-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ Mesa-drivers.spec ++++++ --- /var/tmp/diff_new_pack.LE7zE3/_old 2020-05-29 21:35:55.418390288 +0200 +++ /var/tmp/diff_new_pack.LE7zE3/_new 2020-05-29 21:35:55.422390300 +0200 @@ -129,6 +129,7 @@ Source6: %{name}-rpmlintrc Source7: Mesa.keyring Patch2: n_add-Mesa-headers-again.patch +Patch3: U_add-lifetime-dse-fix.patch # never to be upstreamed Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch58: u_dep_xcb.patch @@ -736,6 +737,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch2 -p1 +%patch3 -p1 %patch54 -p1 %patch58 -p1 ++++++ Mesa.spec ++++++ --- /var/tmp/diff_new_pack.LE7zE3/_old 2020-05-29 21:35:55.442390360 +0200 +++ /var/tmp/diff_new_pack.LE7zE3/_new 2020-05-29 21:35:55.446390372 +0200 @@ -128,6 +128,7 @@ Source6: %{name}-rpmlintrc Source7: Mesa.keyring Patch2: n_add-Mesa-headers-again.patch +Patch3: U_add-lifetime-dse-fix.patch # never to be upstreamed Patch54: n_drirc-disable-rgb10-for-chromium-on-amd.patch Patch58: u_dep_xcb.patch @@ -735,6 +736,7 @@ rm -rf docs/README.{VMS,WIN32,OS2} %patch2 -p1 +%patch3 -p1 %patch54 -p1 %patch58 -p1 ++++++ U_add-lifetime-dse-fix.patch ++++++ >From 9a72afaea7bf69f07623cae1af99f71be64688ba Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev <[email protected]> Date: Tue, 19 May 2020 20:35:49 +0300 Subject: [PATCH] meson: Disable GCC's dead store elimination for memory zeroing custom new Some classes use custom new operator which zeroes memory, however gcc does aggressive dead-store elimination which threats all writes to the memory before the constructor as "dead stores". For now we disable this optimization. The new operators in question are declared via: DECLARE_RZALLOC_CXX_OPERATORS DECLARE_LINEAR_ZALLOC_CXX_OPERATORS The issue was found with lto builds, however there is no guarantee that it didn't happen with ordinary ones. CC: <[email protected]> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2977 Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1358 Signed-off-by: Danylo Piliaiev <[email protected]> --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meson.build b/meson.build index 1a207842c55..3d4ea165c99 100644 --- a/meson.build +++ b/meson.build @@ -980,6 +980,11 @@ else '-fno-math-errno', '-fno-trapping-math', '-Qunused-arguments', + # Some classes use custom new operator which zeroes memory, however + # gcc does aggressive dead-store elimination which threats all writes + # to the memory before the constructor as "dead stores". + # For now we disable this optimization. + '-flifetime-dse=1', ] # MinGW chokes on format specifiers and I can't get it all working if not (cc.get_id() == 'gcc' and host_machine.system() == 'windows') -- 2.26.2
