]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_sms: Ignore false positive vectorization warning.
authorNaveen Albert <asterisk@phreaknet.org>
Fri, 24 Jan 2025 14:35:50 +0000 (09:35 -0500)
committerGeorge Joseph <gjoseph@sangoma.com>
Thu, 26 Jun 2025 18:25:12 +0000 (12:25 -0600)
Ignore gcc warning about writing 32 bytes into a region of size 6,
since we check that we don't go out of bounds for each byte.
This is due to a vectorization bug in gcc 15, stemming from
gcc commit 68326d5d1a593dc0bf098c03aac25916168bc5a9.

Resolves: #1088
(cherry picked from commit 3951a5a2dcd375adf4980b157e2c1643d61c4674)

apps/Makefile

index 02b705ddb25fd234107cba51a3579eb99ef9ddc4..0ccb2eb1a6418341aba804d9938c9ccedb29a161 100644 (file)
@@ -52,6 +52,8 @@ $(call MOD_ADD_C,app_confbridge,$(wildcard confbridge/*.c))
 app_confbridge.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
 app_meetme.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
 app_minivm.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION)
+# Needed to work around gcc 15 bug: https://github.com/asterisk/asterisk/issues/1088
+app_sms.o: _ASTCFLAGS+=-fno-tree-vectorize
 app_voicemail.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DFILE_STORAGE
 app_voicemail_odbc.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DODBC_STORAGE
 app_voicemail_imap.o: _ASTCFLAGS+=$(AST_NO_FORMAT_TRUNCATION) -DIMAP_STORAGE