]> xenbits.xensource.com Git - xen.git/commitdiff
docs/misra: document gcc-specific behavior with shifting signed integers
authorStefano Stabellini <stefano.stabellini@amd.com>
Tue, 22 Aug 2023 01:02:28 +0000 (18:02 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Thu, 31 Aug 2023 01:59:52 +0000 (18:59 -0700)
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
docs/misra/C-language-toolchain.rst

index 785aed1eaf9fd0049fd8d55f81ab39972535e5be..4c4942a11321800aeb643c05fed8885603ec6c92 100644 (file)
@@ -200,6 +200,15 @@ The table columns are as follows:
      - ARM64, X86_64
      - See Section "6.29 Designated Initializers" of GCC_MANUAL
 
+   * - Signed << compiler-defined behavior
+     - All architectures
+     - See Section "4.5 Integers" of GCC_MANUAL. As an extension to the
+       C language, GCC does not use the latitude given in C99 and C11
+       only to treat certain aspects of signed << as undefined.
+
+   * - Signed >> acts on negative numbers by sign extension
+     - All architectures
+     - See Section "4.5 Integers" of GCC_MANUAL.
 
 Translation Limits
 __________________