]> git.ipfire.org Git - thirdparty/asterisk.git/commit
partial-inlining: disable partial-inlining if gcc>=8.2.1
authorChris-Savinovich <csavinovich@digium.com>
Thu, 7 Mar 2019 19:48:04 +0000 (13:48 -0600)
committerChris-Savinovich <csavinovich@digium.com>
Mon, 11 Mar 2019 17:09:54 +0000 (12:09 -0500)
commit47c853f8e18e11989c427e6883c16d543508aca1
tree2c46ab98895ff7bf1613427022ef213c3c20d334
parent24b94aa27f7e94be1554d6b5649f623f3ab0f278
partial-inlining: disable partial-inlining if gcc>=8.2.1

Apply flag -fno-partial-inlining on default optimization if and only if
gcc version >= 8.2.1 (this is the current ver on Fedora and Ubuntu).
This is done to avoid a bug that causes arithmetic calculations to fail
if the following conditions are met:
1. TEST_FRAMEWORK on
2. DONT_OPTIMIZE off
3. Fedora and Ubuntu
4. GCC 8.2.1
5. There must exist a certain combination of multithreading.
6. Optimization level -O2 and -O3
7. Flag -fpartial-inline activated (default when optimization level>=2)
The following link points to a similar gcc bug reported in 2015. This leads me
to believe the bug has regressed. Note I am not able to replicate this bug
in an environment other than Asterisk + Test Framework + Test_cel because the
multithreading combination that causes it seems to be unique. Therefore I
am temporarily abandoning any thoughts of reporting the new occurrence of this
bug to gcc.gnu.org.  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65307

Change-Id: Ibd1afe60e0a38b88e85fdcd9b051004601c2f102
Makefile.rules