diff options
author | Bob Duff <duff@adacore.com> | 2022-12-06 11:37:27 -0500 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-01-03 10:29:52 +0100 |
commit | 7512dcc94236d247ceef8cef6d36392a86e271a0 (patch) | |
tree | 7c7bd8fdd70250907dc78c7bf8b24eb24aa188be /gcc/fold-const.cc | |
parent | 930b81af5b0207585819ea9988a0f50d009940a7 (diff) | |
download | gcc-7512dcc94236d247ceef8cef6d36392a86e271a0.zip gcc-7512dcc94236d247ceef8cef6d36392a86e271a0.tar.gz gcc-7512dcc94236d247ceef8cef6d36392a86e271a0.tar.bz2 |
ada: Simplify [Small_]Integer_Type_For
Make Small_Integer_Type_For call Integer_Type_For,
so they share most of the code.
Remove Standard_Long_Integer from consideration,
because that's different on different machines (32- or 64-bit).
Standard_Integer or Standard_Long_Long_Integer will be
chosen.
gcc/ada/
* exp_util.adb (Integer_Type_For): Assertion and comment.
(Small_Integer_Type_For): Remove some code and call
Integer_Type_For instead.
* sem_util.ads (Rep_To_Pos_Flag): Improve comments. "Standard_..."
seems overly pedantic here.
* exp_attr.adb (Succ, Pred): Clean up: make the code as similar as
possible.
* exp_ch4.adb: Minor: named notation.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions