<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=3057851" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jcarrano">@jcarrano</a>: <code>__attribute__((always_inline))</code> could be used to force inlining of <code>compiler_barrier()</code> and would be nicer to read in GDB when debugging. It is supported by both GCC and clang for quite some time. Would that be an alternative?</p>
<p>(I believe that the use of inline assembly there is less widely supported than <code>__attribute__((always_inline))</code>. If this is correct, this will not reduce compatibility compared to the use of a macro.)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11438#issuecomment-486597466">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYBH7LWUP7SYHUFUWCLPSF2PTANCNFSM4HIEMQOA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYATBP53AZEVNJMXZDTPSF2PTANCNFSM4HIEMQOA.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/RIOT-OS/RIOT","title":"RIOT-OS/RIOT","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/RIOT-OS/RIOT"}},"updates":{"snippets":[{"icon":"PERSON","message":"@maribu in #11438: @jcarrano: `__attribute__((always_inline))` could be used to force inlining of `compiler_barrier()` and would be nicer to read in GDB when debugging. It is supported by both GCC and clang for quite some time. Would that be an alternative?\r\n\r\n(I believe that the use of inline assembly there is less widely supported than `__attribute__((always_inline))`. If this is correct, this will not reduce compatibility compared to the use of a macro.)"}],"action":{"name":"View Pull Request","url":"https://github.com/RIOT-OS/RIOT/pull/11438#issuecomment-486597466"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11438#issuecomment-486597466",
"url": "https://github.com/RIOT-OS/RIOT/pull/11438#issuecomment-486597466",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>