Skip to content

armv7l should not default to NEON enabled #1752

Open
@redstar

Description

@redstar

I moved the ARM buildbot slave to a different server. The new one is based on a Marvell PJ4 core. This is an ARMv7 architecture but without the NEON feature. The triple is armv7l-unknown-linux-gnueabihf, like my old krait-based board. LLVM is not aware of this CPU. In driver/targetmachine.cpp, function getARMTargetCPU(), the cortex-a8 CPU is used for the armv7l architecture. This is an inappropriate choice because this CPU has the NEON feature enabled. Every D application crashes during startup.

My work around was to use the options -mcpu=generic -mattr=+v7,-neon but this is really cumbersome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions