Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
087f6616c3 | |||
0fbaaf67fd |
23
fix_make_check_with_gcc15.patch
Normal file
23
fix_make_check_with_gcc15.patch
Normal 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))
|
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user