2 Commits

Author SHA256 Message Date
087f6616c3 Accepting request 1273778 from devel:libraries:c_c++
- Add fix_make_check_with_gcc15.patch to make the testsuite pass
  despite new GCC malloc-related optimizations. [boo#1240665]

If the request is OK, please forward it to Factory soon so that we can
switch the default compiler. (forwarded request 1273720 from jamborm)

OBS-URL: https://build.opensuse.org/request/show/1273778
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jemalloc?expand=0&rev=37
2025-05-02 12:55:36 +00:00
0fbaaf67fd - Add fix_make_check_with_gcc15.patch to make the testsuite pass
despite new GCC malloc-related optimizations. [boo#1240665]

If the request is OK, please forward it to Factory soon so that we can
switch the default compiler.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/jemalloc?expand=0&rev=89
2025-05-01 05:59:00 +00:00
3 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
From: Martin Jambor <mjambor@suse.cz>
Date: Wed, 30 Apr 2025 18:35:11 +0200
Subject: Add -fno-builtin to CFLAGS when building integration tests
References: boo#1240665, https://github.com/jemalloc/jemalloc/issues/2823
Upstream: tbd
GCC 15 optimizes out allocations which aligned_alloc integration test
expects to fail. Using the -fno-builtin option prevents GCC from
treating malloc specially in this way and the test-suite to pass.
Index: jemalloc-5.3.0/Makefile.in
===================================================================
--- jemalloc-5.3.0.orig/Makefile.in
+++ jemalloc-5.3.0/Makefile.in
@@ -654,6 +654,7 @@ uninstall: uninstall_doc
endif
tests_unit: $(TESTS_UNIT:$(srcroot)%.c=$(objroot)%$(EXE))
+tests_integration: CFLAGS += -fno-builtin
tests_integration: $(TESTS_INTEGRATION:$(srcroot)%.c=$(objroot)%$(EXE)) $(TESTS_INTEGRATION_CPP:$(srcroot)%.cpp=$(objroot)%$(EXE))
tests_analyze: $(TESTS_ANALYZE:$(srcroot)%.c=$(objroot)%$(EXE))
tests_stress: $(TESTS_STRESS:$(srcroot)%.c=$(objroot)%$(EXE))

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 30 17:20:06 UTC 2025 - Martin Jambor <mjambor@suse.com>
- Add fix_make_check_with_gcc15.patch to make the testsuite pass
despite new GCC malloc-related optimizations. [boo#1240665]
-------------------------------------------------------------------
Fri May 6 20:53:16 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package jemalloc
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@ License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: http://jemalloc.net/
Source: https://github.com/jemalloc/jemalloc/releases/download/%version/jemalloc-%version.tar.bz2
Patch0: fix_make_check_with_gcc15.patch
BuildRequires: docbook-xsl-stylesheets
BuildRequires: libxslt
BuildRequires: pkgconfig