[Asterisk-code-review] force inline: remove all force inline from asterisk. (asterisk[16])
Chris Savinovich
asteriskteam at digium.com
Tue Jan 29 18:34:35 CST 2019
Hello Friendly Automation,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/10935
to look at the new patch set (#3).
Change subject: force_inline: remove all force_inline from asterisk.
......................................................................
force_inline: remove all force_inline from asterisk.
A bug in GCC 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 (happens automatically when -O2)
Forcing inlining in our code is the actual error trigger. The new
concensus is that it is best to leave it to the compiler to determine
what to inline. Therefore this fix removes all instances of custom
type force_inline wherever possible throughout the Asterisk code.
Change-Id: I2a90249763a7139fd12c54ad4e0e8d5cbbed14f9
---
M include/asterisk/sem.h
M include/asterisk/strings.h
M include/asterisk/utils.h
M main/audiohook.c
M main/sem.c
M main/strings.c
6 files changed, 193 insertions(+), 151 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/10935/3
--
To view, visit https://gerrit.asterisk.org/10935
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I2a90249763a7139fd12c54ad4e0e8d5cbbed14f9
Gerrit-Change-Number: 10935
Gerrit-PatchSet: 3
Gerrit-Owner: Chris Savinovich <csavinovich at digium.com>
Gerrit-Reviewer: Friendly Automation (1000185)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190129/b7ff16b4/attachment.html>
More information about the asterisk-code-review
mailing list