Hi,
I propose to use the official binary prefix "gibi", established by International Electrotechnical Commission (IEC) and several other standards and trade organizations. Weirdly enough, the term gigibyte is used in three places, whereas gibibyte is the only correct term. See also https://en.wikipedia.org/wiki/Binary_prefix I was unsure if this deserves a changelog item. Best regards Dieter --- diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 07b440190c3..714b6325bac 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -131,7 +131,7 @@ threshold of some sort may be arbitrarily large decimal or hexadecimal integers followed by a byte size suffix designating a multiple of bytes such as @code{kB} and @code{KiB} for kilobyte and kibibyte, respectively, @code{MB} and @code{MiB} for megabyte and mebibyte, @code{GB} and -@code{GiB} for gigabyte and gigibyte, and so on. Such arguments are +@code{GiB} for gigabyte and gibibyte, and so on. Such arguments are designated by @var{byte-size} in the following text. Refer to the NIST, IEC, and other relevant national and international standards for the full listing and explanation of the binary and decimal byte size prefixes. diff --git a/gcc/doc/options.texi b/gcc/doc/options.texi index 17ba923890e..71a75ef0039 100644 --- a/gcc/doc/options.texi +++ b/gcc/doc/options.texi @@ -320,7 +320,7 @@ precision using saturation arithmetic in the corresponding type. The argument may be followed by a @samp{byte-size} suffix designating a multiple of bytes such as @code{kB} and @code{KiB} for kilobyte and kibibyte, respectively, @code{MB} and @code{MiB} for megabyte and mebibyte, @code{GB} and @code{GiB} -for gigabyte and gigibyte, and so on. @code{ByteSize} should be used for +for gigabyte and gibibyte, and so on. @code{ByteSize} should be used for with options that take a very large argument representing a size in bytes, such as @option{-Wlarger-than=}. diff --git a/gcc/testsuite/gcc.dg/Walloc-size-larger-than-6.c b/gcc/testsuite/gcc.dg/Walloc-size-larger-than-6.c index 2dfc6632b9e..2817505b85a 100644 --- a/gcc/testsuite/gcc.dg/Walloc-size-larger-than-6.c +++ b/gcc/testsuite/gcc.dg/Walloc-size-larger-than-6.c @@ -12,7 +12,7 @@ void f (void) __SIZE_TYPE__ n = 0; T (__builtin_malloc (n)); - n = 1024 * 1024 * 1024; /* 1 gigibyte (GiB) */ + n = 1024 * 1024 * 1024; /* 1 gibibyte (GiB) */ T (__builtin_malloc (n)); n += 1; [Excentis Logo] <https://www.excentis.com> Dieter Dobbelaere Senior Engineer R&D dieter.dobbela...@excentis.com<mailto:dieter.dobbela...@excentis.com> www.excentis.com<https://www.excentis.com> ยท +32 9 269 22 91<tel:+32%209%20269%2022%2091>