On 07/01/14 17:02, James Greenhalgh wrote:

Ugh.

Now we have two ASM_SPECs which try to handle -mcpu as input.

One of them just returns the input, the other does the cpu rewriting
we actually want, so we can end up with:

   gcc -mcpu=cortex-a57.cortex-a53

Getting passed through to the assembler as:

   as -mcpu=cortex-a57 -mcpu=cortex-a57.cortex-a53

Which is obviously broken.

This patch removes the identity spec, the rewriting one will return
identity for non-big.LITTLE names anyway.

Checked with all the valid values of -mcpu to ensure that the right
thing is passed through to the assembler. Also sanity checked with
aarch64.exp.

Ugh, and sorry, this was clumsy on my part.

OK for trunk?

Thanks,
James

---
gcc/

        * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
        -mcpu.


OK
/Marcus

Reply via email to