Module Name:    src
Committed By:   martin
Date:           Thu Mar  6 10:02:10 UTC 2025

Modified Files:
        src/external/gpl3/gcc/dist/gcc: tree-ssa-ccp.cc

Log Message:
Remove a (local) "temporary cludge" that has outlived its usefullness
when we updated from jemalloc 1.0 to newer versions: remove a compile
time test supposed to guarantee that gcc's MALLOC_ABI_ALIGNMENT is
in sync with the minimum alignemnet guaranteed by jemalloc.
Tangentialy related to (and proposed in) PR 59062.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc
diff -u src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc:1.4 src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc:1.5
--- src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc:1.4	Mon Jul  1 05:31:10 2024
+++ src/external/gpl3/gcc/dist/gcc/tree-ssa-ccp.cc	Thu Mar  6 10:02:10 2025
@@ -4643,45 +4643,3 @@ make_pass_post_ipa_warn (gcc::context *c
 {
   return new pass_post_ipa_warn (ctxt);
 }
-
-#if defined(__NetBSD__) && defined(NETBSD_NATIVE)
-/*
- * This is a big, ugly, temporary hack:
- *    http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59958
- * To make sure we have configured all our targets correctly, mimic the
- * #ifdef cascade from src/lib/libc/stdlib/jemalloc.c here and compile
- * time assert that the value matches gcc's MALLOC_ABI_ALIGNMENT here.
- */
-
-#if defined(__hppa__)
-#define	JEMALLOC_TINY_MIN_2POW	4
-#elif defined(__alpha__) || defined(__amd64__) || defined(__sparc64__)	\
-     ||	(defined(__arm__) && defined(__ARM_EABI__)) \
-     || defined(__ia64__) || defined(__powerpc__) \
-     || defined(__aarch64__) \
-     || ((defined(__mips__) || defined(__riscv__)) && defined(_LP64))
-#define	JEMALLOC_TINY_MIN_2POW	3
-#endif
-
-#ifndef JEMALLOC_TINY_MIN_2POW
-#define	JEMALLOC_TINY_MIN_2POW	2
-#endif
-
-/* make sure we test the (native) 64bit variant for targets supporting -m32 */
-#undef	TARGET_64BIT
-#ifdef _LP64
-#define	TARGET_64BIT	1
-#else
-#define	TARGET_64BIT	0
-#endif
-
-/* ARM has a non-constant MALLOC_ABI_ALIGNMENT since GCC 5.  */
-#if !defined(__arm__)
-#ifdef __CTASSERT
-__CTASSERT((8<<JEMALLOC_TINY_MIN_2POW) == MALLOC_ABI_ALIGNMENT);
-#else
-#error compiling on an older NetBSD version?
-#endif
-#endif
-
-#endif

Reply via email to