<p>Christian Savinovich has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11106">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">no-partial-inlining: disable partial-inlining if gcc>=8.2<br><br>Apply flag -fno-partial-inlining on default optimization if and only if<br>gcc version >= 8.2 (Will occur if latest Fedora or Ubuntu). This is done to<br>avoid documented bug that causes arithmetic calculations to fail if the<br>following conditions are met:<br>1. TEST_FRAMEWORK on<br>2. DONT_OPTIMIZE off<br>3. Fedora and Ubuntu<br>4. GCC 8.2.1<br>5. There must exist a certain combination of multithreading.<br>6. Optimization level -O2 and -O3<br>7. Flag -fpartial-inline activated (default optimization level>=2)<br><br>Change-Id: Ibd1afe60e0a38b88e85fdcd9b051004601c2f102<br>---<br>M Makefile.rules<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/11106/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile.rules b/Makefile.rules</span><br><span>index b979927..d8fddba 100644</span><br><span>--- a/Makefile.rules</span><br><span>+++ b/Makefile.rules</span><br><span>@@ -70,6 +70,12 @@</span><br><span> endif</span><br><span> endif</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+# gcc version 8.20 and above must have partial-inlining disabled to avoid documented bug</span><br><span style="color: hsl(120, 100%, 40%);">+GCC_VER_GTE82:=$(shell expr `gcc --version | grep ^gcc | cut -d ' ' -f 3 | sed -e 's/\.\([0-9][0-9]\)/\1/g' -e 's/\.\([0-9]\)/0\1/g' -e 's/^[0-9]\{3,4\}$$/&00/'` \>= 80200)</span><br><span style="color: hsl(120, 100%, 40%);">+ifeq ($(GCC_VER_GTE82),1)</span><br><span style="color: hsl(120, 100%, 40%);">+ OPTIMIZE+=-fno-partial-inlining</span><br><span style="color: hsl(120, 100%, 40%);">+endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS))$(AST_CODE_COVERAGE),no)</span><br><span> _ASTCFLAGS+=$(OPTIMIZE)</span><br><span> else</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11106">change 11106</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11106"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Ibd1afe60e0a38b88e85fdcd9b051004601c2f102 </div>
<div style="display:none"> Gerrit-Change-Number: 11106 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Christian Savinovich <csavinovich@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>