Skip to content

Conversation

kito-cheng
Copy link
Collaborator

Add documentation for the -march=unset option that allows ignoring previous -march options and deriving architecture from -mcpu.

The -march=unset option is particularly useful for build systems and toolchain configurations where architecture should always be derived from CPU specification rather than potentially conflicting -march options.

Add documentation for the -march=unset option that allows ignoring previous
-march options and deriving architecture from -mcpu.

The -march=unset option is particularly useful for build systems and
toolchain configurations where architecture should always be derived
from CPU specification rather than potentially conflicting -march options.
@kito-cheng
Copy link
Collaborator Author

Copy link
Contributor

@lenary lenary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks Kito!

Copy link
Collaborator

@cmuellner cmuellner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and it seems at least the LLVM community is happy with this solution.

@kito-cheng
Copy link
Collaborator Author

GCC patch has landed, so I believe it's settle down now :)

@kito-cheng kito-cheng merged commit 434b7f6 into main Aug 7, 2025
2 checks passed
@MaskRay
Copy link

MaskRay commented Aug 9, 2025

GCC commit 4a182418c89666e7594bcb0e5edc5194aa147910 ("RISC-V: Support CPUs in -march.") has not been reverted yet but should be reverted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants