Control: tags -1 + patch

Hey,

The -munroll-only-small-loops flag has been part of O3 optimizers, so when
configure.ac setting O3FLAGS, it is not properly getting added due to
current code which just filters options starting with `-f`

so the solution is to modify this and have `-m` also included. I have
attached the patch here.

We have already included this patch in Ubuntu
https://launchpad.net/ubuntu/+source/freecontact/1.0.21-15ubuntu1

Thanks
0xnishit
Description: Fix freecontacts FTBFS with gcc-15
Author: Nishit Majithia <[email protected]>
Bug-Ubuntu: https://launchpad.net/bugs/2126990
Bug-Debian: https://bugs.debian.org/1096651

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -34,7 +34,7 @@
 	$CXX -c -Q     --help=optimizers > $t2
 	$CXX -c -Q -O3 --help=optimizers > $t3
 	# We are especially interested in -ftree-vectorize.
-	O3FLAGS=$(diff -u0 $t2 $t3 |grep enabled|sed -e 's/.* \(-f[[:alnum:]-]\+\).*/\1/;'|sed -e ':a; N; s/\n/ /; ta';);
+	O3FLAGS=$(diff -u0 $t2 $t3 |grep enabled|sed -e 's/.* \(-[fm][[:alnum:]-]\+\).*/\1/;'|sed -e ':a; N; s/\n/ /; ta';);
 	rm -f -- '$t2' '$t3';
 	trap - EXIT;
 }]

Attachment: OpenPGP_0x05F608E82C53AE39.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to