<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Nov 22, 2013, at 11:43 AM, Renato Golin <<a href="mailto:renato.golin@linaro.org">renato.golin@linaro.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 22 November 2013 14:33, Bernard Ogden <span dir="ltr"><<a href="mailto:Bernard.Ogden@arm.com" target="_blank">Bernard.Ogden@arm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">Non-Darwin: Arch for cpu specified with -mcpu takes precendence over arch specified by -arch/-march<br>
Darwin: Arch specified with -arch/-march takes precendence over arch specified by -mcpu<br></blockquote><div></div></div><br></div><div class="gmail_extra">This is ugly, but if it's the expected behaviour in Darwin, I won't cry.</div>
<div class="gmail_extra"><br></div></div></blockquote><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">Jim, you seem to know these corner cases of the Darwin Arch selection, does that make sense?</div><div class="gmail_extra"><br></div></div></blockquote><div><br></div><div>-mcpu= takes precedence over -arch; however, the slice (cpu subtype in the MachO file) is still dictated by the -arch setting only.</div></div><br><div>Using -march= and -mcpu= at the same time should probably be a hard error. -march is preferable and 32-bit ARM is the outlier for historical reasons in preferring -mcpu. I’d love to be able to change that, but it’s likely to be a hard road.</div><div><br></div><div>-Jim</div></body></html>