aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorRonan Desplanques <desplanques@adacore.com>2022-12-14 15:10:44 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-01-05 15:29:59 +0100
commit90d3cd03b35147b24091e7eba249fd4ea178082f (patch)
tree74386f7ffc310e4bf1c9d77594249fea911c5934 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parent912d1e184a4f6c66bc57893e5745ec74009b4fd1 (diff)
downloadgcc-90d3cd03b35147b24091e7eba249fd4ea178082f.zip
gcc-90d3cd03b35147b24091e7eba249fd4ea178082f.tar.gz
gcc-90d3cd03b35147b24091e7eba249fd4ea178082f.tar.bz2
ada: Adjust handling of "%g" in GNAT.Formatted_String
The way the "%g" specifier was handled by GNAT.Formatted_String before this patch was very different from the behavior of C's printf. This patch makes the handling of "%g" in GNAT.Formatted_String closer to the behavior described in the specification of the C language. gcc/ada/ * libgnat/g-forstr.adb (F_Kind): Rename enumeration literal. (P_Flt_Format): Adjust handling of "%g". (Determine_Notation_And_Aft): New procedure. (Decimal_Exponent): New function. (Increment_Integral_Part): New procedure. (Remove_Extraneous_Decimal_Digit): New procedure. (Trim_Fractional_Part): New procedure. * libgnat/g-forstr.ads: Change description of "%g" specifier.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions