Files
gentoo/dev-vcs/subversion/files/subversion-1.14.5-no-unaligned.patch
Sam James 7f42125db6 dev-vcs/subversion: fix unaligned access
Fixes crash w/ GCC 15. It looks like this is what upstream are going to
do as well.

Bug: https://gcc.gnu.org/PR119016
Closes: https://bugs.gentoo.org/950271
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-27 10:47:53 +00:00

24 lines
617 B
Diff
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
https://bugs.gentoo.org/950271
https://gcc.gnu.org/PR119016
https://marc.info/?l=subversion-dev&m=174056933428992&w=2
Always take the safe path. It vectorises with GCC 15 at least anyway.
--- a/subversion/include/svn_types.h
+++ b/subversion/include/svn_types.h
@@ -125,15 +125,7 @@ extern "C" {
*
* @since New in 1.7.
*/
-#ifndef SVN_UNALIGNED_ACCESS_IS_OK
-# if defined(_M_IX86) || defined(i386) \
- || defined(_M_X64) || defined(__x86_64) \
- || defined(__powerpc__) || defined(__ppc__)
-# define SVN_UNALIGNED_ACCESS_IS_OK 1
-# else
# define SVN_UNALIGNED_ACCESS_IS_OK 0
-# endif
-#endif