Hi All,
Ping for this patch series,
Thanks,
Alfie
On 23/10/2025 13:49, Alfie Richards wrote:
Hello,
This series adds support for the priority syntax in aarch64 version strings.
This series makes a small change to the same_function_version hook in order
to support priority syntax, and requires updating the callers to that function.
Changes for V4:
- Addressed Wilco's feedback on logic in disjoint_version_decls.
- Pushed approved patches
Changes for V3:
- Addressed Wilco's feedback on logic in aarch64_parse_fmv_features.
- Fixed grammar in commit message.
Changes for V2:
- Added tests for priority version errors.
- Changed disjoint_version_decls to have an explicit new_decl and old_decl
- Change a call to disjoint_version_decls in c frontend where they were the
wrong way around.
- Simplified and corrected some of my parsing logic as Wilco suggested.
- Changed how the aarch64 version order test works as discussed with Wilco.
- Adds patch to add FMV support macro
Regr tested on aarch64-linux-gnu and x86-linux-gnu.
Ok for master?
Thanks.
Alfie
Alfie Richards (2):
targhooks: Change SAME_FUNCTION_VERSIONS hook to support emitting
diagnostic.
aarch64: Add support for fmv priority syntax.
gcc/c/c-decl.cc | 2 +-
gcc/config/aarch64/aarch64.cc | 143 ++++++++++++++----
gcc/doc/tm.texi | 8 +-
gcc/target.def | 12 +-
.../gcc.target/aarch64/fmv_priority3.c | 26 ++++
.../gcc.target/aarch64/fmv_priority_error1.c | 11 ++
.../gcc.target/aarch64/fmv_priority_error2.c | 8 +
gcc/tree.cc | 122 ++++++++-------
8 files changed, 246 insertions(+), 86 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/aarch64/fmv_priority3.c
create mode 100644 gcc/testsuite/gcc.target/aarch64/fmv_priority_error1.c
create mode 100644 gcc/testsuite/gcc.target/aarch64/fmv_priority_error2.c