]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Test_cel: Fails when DONT_OPTIMIZE is off
authorChris-Savinovich <csavinovich@digium.com>
Sat, 19 Jan 2019 21:55:20 +0000 (15:55 -0600)
committerChris-Savinovich <csavinovich@digium.com>
Tue, 22 Jan 2019 21:41:33 +0000 (15:41 -0600)
commit05b79d16ab93b038b39412e2570a21205eb499c4
tree4e2df3111bd99a86081b8fe6f114053a2a6a8749
parent011e46d5a68a986ac503736208507b23dd071868
Test_cel: Fails when DONT_OPTIMIZE is off

A bug in GCC causes TEST_CEL to return failure under the following
conditions:
1. TEST_FRAMEWORK on
2. DONT_OPTIMIZE off
3. Fedora and Ubuntu
4. GCC 8.2.1
5. Test name: test_cel_dial_pickup
6. There must exist a certain combination of multithreading.
The bug affects arithmetic calculations when the optimization level
is bigger than O1 and the -fpartial-inline flag is on. Provided these
conditions, function ast_str_to_lower() fails to convert to lower case
due to said function being of type force_inline.  The solution is to
remove the "force_inline" type declaration from function ast_str_to_lower()

Change-Id: Ied32e0071f12ed9d5f3b4cdd878b2532a1c769d7
include/asterisk/strings.h
main/strings.c