Skip to content

[Bug]: -mcpu/-mfpu options in CLANG.17.0.1.cmake need to be reworked #618

Description

@chentang16

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Due to various issues reported so far:
#583
arm/arm-toolchain#861
the -mcpu/-mfpu options in CLANG.17.0.1.cmake (for LLVM CLANG/ATfE toolchain) need to be reworked based on the ATfE manual page:
https://developer.arm.com/documentation/107976/22-1-0/Compile-for-a-specific-Arm-architecture-or-Arm-processor/-mcpu-command-line-options-for-M-profile-processors?lang=en

Namely for Armv7-M targets, either the standalone -mcpu or the equivalent -mcpu + -mfpu combination described on the manual page should be used. For Armv8-M and later targets, the standalone -mcpu options listed on the manual page should be used.

Expected Behavior

No response

Steps To Reproduce

No response

Affected tools

  • cbridge
  • cbuild
  • cbuild2cmake
  • cpackget
  • csolution
  • packchk
  • svdconv
  • vidx2pidx

Affected operating systems

  • all
  • Windows amd64
  • Windows arm64
  • Linux amd64
  • Linux arm64
  • MacOS amd64
  • MacOS arm64

Environment

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

Status
In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions