diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2024-09-10 12:09:48 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2024-10-08 10:37:13 +0200 |
commit | 7a5f6f764dda359385fb97d8eebe61cab092a200 (patch) | |
tree | 4c2c781f2545c62fdac2af5e268ace501a600451 /gcc/tree-ssa.cc | |
parent | cee753879cdb61c27dd584fcc4932969fb2cd0be (diff) | |
download | gcc-7a5f6f764dda359385fb97d8eebe61cab092a200.zip gcc-7a5f6f764dda359385fb97d8eebe61cab092a200.tar.gz gcc-7a5f6f764dda359385fb97d8eebe61cab092a200.tar.bz2 |
ada: Avoid dependency on Long_Long_Long_Integer and System.Img_LLLI for 'Image
When the Image attribute is applied directly to another attribute returning
Universal_Integer, for example Enum_Rep, it is converted to the equivalent
of Universal_Integer'Image, which is implemented by Long_Long_Long_Integer
and thus triggers a dependency on System.Img_LLLI, both being unnecessary
in most practical cases.
gcc/ada/ChangeLog:
* exp_imgv.adb (Rewrite_Object_Image): When the prefix is a type
conversion to Universal_Integer, use its expression directly. When
the prefix is an integer literal with Universal_Integer type, try
to compute a narrower type.
Diffstat (limited to 'gcc/tree-ssa.cc')
0 files changed, 0 insertions, 0 deletions