<div dir="ltr">On 26 August 2013 21:06, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="im">On Sat, Aug 24, 2013 at 7:44 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:</div><div class="im">
<div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Since the default value for unaligned accesses / strict alignment<br>
depends on the tripple, both the enable and disable flags are added.<br>
If both are set, the no-unaligned-access is used.<br>
</blockquote></div><br></div></div><div class="gmail_extra">Isn't the usual pattern that the last one wins?</div></div>
</blockquote></div><br></div><div class="gmail_extra">Hi Reid,</div><div class="gmail_extra"><br></div><div class="gmail_extra">This is a good point, but in this specific case, it's a bit of a grey area.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">Basically, what "no-unaligned-access" is saying is that exceptions will be caught if there is any unaligned access, while "unaligned-access" is less strict, only meaning that "AFAIK, no exceptions will be caught". So, if someone building the command line option knows that exceptions will be caught, we should err in the side of safety, and not rely on build systems to get that right.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">That said, I agree it's a bit too much, and build systems should be able to change the compilation parameters without re-writing the whole argument list. But I'm not sure how safe that is.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">I don't have that strong an opinion to keep things as they are, but I also wouldn't change unless there is a good reason (or consensus) to do so.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div></div>