Skip to content

Commit e7efa82

Browse files
authored
Revert "[TargetVersion] Only enable on RISC-V and AArch64 (#115991)"
This reverts commit 922282e.
1 parent 75b8f98 commit e7efa82

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,6 @@ Attribute Changes in Clang
459459
- Clang now supports ``[[clang::lifetime_capture_by(X)]]``. Similar to lifetimebound, this can be
460460
used to specify when a reference to a function parameter is captured by another capturing entity ``X``.
461461

462-
- The ``target_version`` attribute is now only supported for AArch64 and RISC-V architectures.
463-
464462
Improvements to Clang's diagnostics
465463
-----------------------------------
466464

clang/include/clang/Basic/Attr.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,7 +3297,7 @@ def Target : InheritableAttr {
32973297
}];
32983298
}
32993299

3300-
def TargetVersion : DeclOrTypeAttr, TargetSpecificAttr<TargetArch<!listconcat(TargetAArch64.Arches, TargetRISCV.Arches)>> {
3300+
def TargetVersion : InheritableAttr {
33013301
let Spellings = [GCC<"target_version">];
33023302
let Args = [StringArgument<"NamesStr">];
33033303
let Subjects = SubjectList<[Function], ErrorDiag>;

clang/test/Sema/attr-target-version-unsupported.c

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)