[cfe-commits] [PATCH] Pass -march, -mcpu, -mfpu to linuxtools assembler

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Apr 9 05:41:01 PDT 2012


Thanks! All good points. New patch attached.

On Mon, Apr 9, 2012 at 3:00 PM, Chandler Carruth <chandlerc at google.com> wrote:
> Sorry for missing this for a while.
>
> --- tools/clang/test/Driver/arm-as.c (revision 0)
> +++ tools/clang/test/Driver/arm-as.c (revision 0)
>
> Your change and these tests are Linux-specific, so we should put these in
> 'linux-as.c' or 'linux-arm-as.c'. I'm fine with either.
>
> +// RUN: %clang -target arm-linux -### \
> +// RUN:   -no-integrated-as -c %s 2>&1 \
> +// RUN:   | FileCheck -check-prefix=ARM %s
> +// CHECK-ARM: as"
>
> You'll need to handle 'as.exe' here I think.
>
> +// RUN: %clang -target armv7-linux "-mcpu=cortex-a8" -### \
>
> None of the other input lines use "s.
>
> +  Args.AddAllArgs(CmdArgs, options::OPT_march_EQ, options::OPT_mcpu_EQ,
> +                  options::OPT_mfpu_EQ);
> +
>
> Why add all of the options, shouldn't we just add the last option for these
> (unlike -mattr)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1.patch
Type: application/octet-stream
Size: 2100 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120409/f6477746/attachment.obj>


More information about the cfe-commits mailing list