[PATCH] Refactor duplicate functions

Jim Grosbach grosbach at apple.com
Fri Nov 22 11:55:32 PST 2013


On Nov 22, 2013, at 11:43 AM, Renato Golin <renato.golin at linaro.org> wrote:

> On 22 November 2013 14:33, Bernard Ogden <Bernard.Ogden at arm.com> wrote:
> Non-Darwin: Arch for cpu specified with -mcpu takes precendence over arch specified by -arch/-march
> Darwin: Arch specified with -arch/-march takes precendence over arch specified by -mcpu
> 
> This is ugly, but if it's the expected behaviour in Darwin, I won't cry.
> 
> Jim, you seem to know these corner cases of the Darwin Arch selection, does that make sense?
> 

-mcpu= takes precedence over -arch; however, the slice (cpu subtype in the MachO file) is still dictated by the -arch setting only.

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.

-Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131122/ce2fc7e7/attachment.html>


More information about the cfe-commits mailing list