<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 2/7/2018 5:53 PM, Greg McGary via
cfe-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABFwY94MCuR=VHxjm5bzQVjwpRG5MiHeh=YQ2dqgu4c8A4=hxg@mail.gmail.com">
<div dir="ltr">I am seeing clang for <span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">arm-</span><span
class="gmail-gr_ gmail-gr_62 gmail-gr-alert gmail-gr_spell
gmail-gr_inline_cards gmail-gr_run_anim
gmail-ContextualSpelling gmail-ins-del gmail-multiReplace"
id="gmail-62"
style="display:inline;color:rgb(34,34,34);font-size:small;border-bottom:2px
solid
transparent;background-repeat:no-repeat;font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">linux</span><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">-</span><span
class="gmail-gr_ gmail-gr_63 gmail-gr-alert gmail-gr_spell
gmail-gr_inline_cards gmail-gr_run_anim
gmail-ContextualSpelling" id="gmail-63"
style="display:inline;color:rgb(34,34,34);font-size:small;border-bottom:2px
solid
transparent;background-repeat:no-repeat;font-family:arial,sans-serif;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">androideabi emit
16-byte-</span>aligned vst1.64 and vld1.64, but the ABI only
guarantees 8-byte alignment. Result at runtime is SIGBUS. Since
clang emits "#define __<span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">BIGGEST_ALIGNMENT__
8", it is aware of the ABI's maximum alignment.</span><br>
</div>
</blockquote>
<br>
__<span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">BIGGEST_ALIGNMENT__
is not the alignment of any particular object; some pointers have
lower alignment, some pointers have higher alignment. And the
compiler will raise the alignment of a load or store if it can
prove the pointer is sufficiently aligned.<br>
<br>
It's hard to say more without a testcase.<br>
</span><br>
-Eli
<pre class="moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</body>
</html>