aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-11-19 18:24:01 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2021-12-01 10:24:43 +0000
commit82a7daa31a31922bbe44a878cd0313c048a02130 (patch)
tree9db7700054d45266272e1ebf755106c0b318d2b1 /gcc/fold-const.c
parentba12deb95594b898094b199f9f5ec1a52542be6b (diff)
downloadgcc-82a7daa31a31922bbe44a878cd0313c048a02130.zip
gcc-82a7daa31a31922bbe44a878cd0313c048a02130.tar.gz
gcc-82a7daa31a31922bbe44a878cd0313c048a02130.tar.bz2
[Ada] Fix incorrect fixed-point computation in expression function
gcc/ada/ * einfo.ads (E_Decimal_Fixed_Point_Subtype): Fix pasto. * freeze.adb (Freeze_Fixed_Point_Type): Retrieve the underlying type of the first subtype and do not use a stale value of Small_Value. * sem_res.adb (Resolve_Real_Literal): In the case of a fixed-point type, make sure that the base type is frozen and use its Small_Value to compute the corresponding integer value of the literal.
Diffstat (limited to 'gcc/fold-const.c')
0 files changed, 0 insertions, 0 deletions