Skip to content

__builtin_cpu_supports should accept unknown options #83407

Closed
@DanielKristofKiss

Description

@DanielKristofKiss

Backward\forward compatibility reasons any string shaped parameter in __builtin_cpu_supports should be accepted.
A given codebase might use a valid features that is supported in a new toolchain but not in the previous version.

__builtin_cpu_supports("unsupported-features")

It is valid to turn this into a constant false when the feature is not supported by the compiler.

see #82378

Metadata

Metadata

Assignees

Labels

clang:codegenIR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions