aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-modref.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2021-09-30 12:50:38 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2021-10-11 13:38:11 +0000
commitcea83351a2a023a07ba5577cd91b5edcd690299b (patch)
tree7d9bdec7801de0dfdbcb69d3c85ece87dfbc560d /gcc/ipa-modref.c
parent939b3a2ac672ec5792601ef096049302432d4689 (diff)
downloadgcc-cea83351a2a023a07ba5577cd91b5edcd690299b.zip
gcc-cea83351a2a023a07ba5577cd91b5edcd690299b.tar.gz
gcc-cea83351a2a023a07ba5577cd91b5edcd690299b.tar.bz2
[Ada] Fix internal error on fixed-point divide, multiply and scaling
gcc/ada/ * exp_fixd.adb (Get_Size_For_Value): New function returning a size suitable for a non-negative integer value. (Get_Type_For_Size): New function returning a standard type suitable for a size. (Build_Divide): Call both functions to compute the result type, but make sure to pass a non-negative value to the first. (Build_Multiply): Likewise. (Do_Multiply_Fixed_Universal): Minor consistency tweak. (Integer_Literal): Call both functions to compute the type.
Diffstat (limited to 'gcc/ipa-modref.c')
0 files changed, 0 insertions, 0 deletions