Skip to content

aarch64: -mcpu= passes -mcpu= instead of -march= to as with -no-integrated-as unlike GCC #140262

Open
@pinskia

Description

@pinskia

GCC was changed this behavior almost 10 years ago: https://gcc.gnu.org/pipermail/gcc-patches/2015-August/426507.html .

The reason is because GNU binutils and GCC are seperate projects so an older binutils can be used with a newer GCC without any issues. Plus it allows for GCC to use a different assembler besides GNU binutils which might not have that specific -mcpu option.

clang should do the same.

Right now -no-integrated-as -mcpu=oryon-1 is broken when using with clang and GNU binutils' as because of this . oryon-1 was not added to GNU binutils because it was not needed for when use with GCC; in fact there are other most other -mcpu= options have not been added to GNU binutils for this same reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'diverges-from:gccDoes the clang frontend diverge from gcc on this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions