From f9294c2119365de21b93c4caadcb598b6c439b9e Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Thu, 29 Feb 2024 18:56:43 +0000 Subject: [PATCH] [FMV] Use lexicographic order of feature names when mangling. This decouples feature priorities from name mangling. Doing so will prevent ABI breakages in case we change the feature priorities. --- main/acle.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/acle.md b/main/acle.md index 2e4e14cb..a831751a 100644 --- a/main/acle.md +++ b/main/acle.md @@ -2524,8 +2524,8 @@ the [[cxxabi]](#cxxabi), and it is defined as follows: := `_` followed by token obtained from the tables below and prefixed with `M` ``` -If multiple features are requested then those shall be appended in increasing -priority order and prefixed with `M`. +If multiple features are requested then those shall be appended in lexicographic +order and prefixed with `M`. For example: ``` c @@ -2533,7 +2533,7 @@ __attribute__((target_clones("crc32", "aes+sha1"))) int foo(){..} ``` will produce these mangled names for C language: `foo`, `foo._Mcrc32`, -`foo._Msha1Maes`. +`foo._MaesMsha1`. ### Mapping