[XEN PATCH] misra: extend toolchain assumption about source character set

Nicola Vetrini posted 1 patch 1 day, 23 hours ago
automation/eclair_analysis/ECLAIR/toolchain.ecl | 1 +
docs/misra/C-language-toolchain.rst             | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
[XEN PATCH] misra: extend toolchain assumption about source character set
Posted by Nicola Vetrini 1 day, 23 hours ago
Similar to the ARM64 compiler, the same assumptions can be made about
the X86_64 toolchain.

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
---
 automation/eclair_analysis/ECLAIR/toolchain.ecl | 1 +
 docs/misra/C-language-toolchain.rst             | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/automation/eclair_analysis/ECLAIR/toolchain.ecl b/automation/eclair_analysis/ECLAIR/toolchain.ecl
index 842f8377e561..4bc88aa02942 100644
--- a/automation/eclair_analysis/ECLAIR/toolchain.ecl
+++ b/automation/eclair_analysis/ECLAIR/toolchain.ecl
@@ -210,6 +210,7 @@ ext_sizeof_alignof_void_type"
 
 -doc_begin="See Section \"1.1 Character sets\" of "CPP_MANUAL".  We assume the locale is not restricting any UTF-8 characters being part of the source character set."
 -config=STD.charset,behavior={c99, GCC_ARM64, "utf8"}
+-config=STD.charset,behavior={c99, GCC_X86_64, "utf8"}
 -doc_end
 
 -doc_begin="See Section \"4.3 Identifiers\" of "GCC_MANUAL"."
diff --git a/docs/misra/C-language-toolchain.rst b/docs/misra/C-language-toolchain.rst
index cb81f5c09872..ec0c9953be1c 100644
--- a/docs/misra/C-language-toolchain.rst
+++ b/docs/misra/C-language-toolchain.rst
@@ -400,7 +400,7 @@ The table columns are as follows:
      - See Section "4.15 Architecture" of GCC_MANUAL and Section "3.1.2 Data Representation" of X86_64_ABI_MANUAL.
 
    * - Character not in the basic source character set is encountered in a source file, except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never converted to a token
-     - ARM64
+     - ARM64, X86_64
      - UTF-8
      - See Section "1.1 Character sets" of CPP_MANUAL.
        We assume the locale is not restricting any UTF-8 characters being part of the source character set.
-- 
2.43.0
Re: [XEN PATCH] misra: extend toolchain assumption about source character set
Posted by Stefano Stabellini 22 hours ago
On Tue, 16 Dec 2025, Nicola Vetrini wrote:
> Similar to the ARM64 compiler, the same assumptions can be made about
> the X86_64 toolchain.
> 
> No functional change.
> 
> Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
>  automation/eclair_analysis/ECLAIR/toolchain.ecl | 1 +
>  docs/misra/C-language-toolchain.rst             | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/automation/eclair_analysis/ECLAIR/toolchain.ecl b/automation/eclair_analysis/ECLAIR/toolchain.ecl
> index 842f8377e561..4bc88aa02942 100644
> --- a/automation/eclair_analysis/ECLAIR/toolchain.ecl
> +++ b/automation/eclair_analysis/ECLAIR/toolchain.ecl
> @@ -210,6 +210,7 @@ ext_sizeof_alignof_void_type"
>  
>  -doc_begin="See Section \"1.1 Character sets\" of "CPP_MANUAL".  We assume the locale is not restricting any UTF-8 characters being part of the source character set."
>  -config=STD.charset,behavior={c99, GCC_ARM64, "utf8"}
> +-config=STD.charset,behavior={c99, GCC_X86_64, "utf8"}
>  -doc_end
>  
>  -doc_begin="See Section \"4.3 Identifiers\" of "GCC_MANUAL"."
> diff --git a/docs/misra/C-language-toolchain.rst b/docs/misra/C-language-toolchain.rst
> index cb81f5c09872..ec0c9953be1c 100644
> --- a/docs/misra/C-language-toolchain.rst
> +++ b/docs/misra/C-language-toolchain.rst
> @@ -400,7 +400,7 @@ The table columns are as follows:
>       - See Section "4.15 Architecture" of GCC_MANUAL and Section "3.1.2 Data Representation" of X86_64_ABI_MANUAL.
>  
>     * - Character not in the basic source character set is encountered in a source file, except in an identifier, a character constant, a string literal, a header name, a comment, or a preprocessing token that is never converted to a token
> -     - ARM64
> +     - ARM64, X86_64
>       - UTF-8
>       - See Section "1.1 Character sets" of CPP_MANUAL.
>         We assume the locale is not restricting any UTF-8 characters being part of the source character set.
> -- 
> 2.43.0
>