diff options
author | Bob Duff <duff@adacore.com> | 2020-03-30 10:20:33 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-06-15 04:04:24 -0400 |
commit | 6349cf36d8bb7fb83f67a7bc27fc67dca73b19dd (patch) | |
tree | 0812c36df6e46c61907a17b1bc377b3a79245b19 /gcc/alloc-pool.c | |
parent | bfdb362c000c1502ca4757bb7e5ce5cb42a6a5ae (diff) | |
download | gcc-6349cf36d8bb7fb83f67a7bc27fc67dca73b19dd.zip gcc-6349cf36d8bb7fb83f67a7bc27fc67dca73b19dd.tar.gz gcc-6349cf36d8bb7fb83f67a7bc27fc67dca73b19dd.tar.bz2 |
[Ada] Clean up error handling of 'Image
2020-06-15 Bob Duff <duff@adacore.com>
gcc/ada/
* sem_attr.adb (Check_Image_Type): New procedure for checking
the type, depending on language version. Disable the Ada 2020
support until the corresponding expander work is done.
(Analyze_Image_Attribute): Call Check_Image_Type. Rearrange the
code to be simplier and more logical. When P_Type is modified,
modify P_Base_Type accordingly.
* sem_util.adb (Is_Object_Image): Do not return False if the
prefix is a type. X'Image should be considered an image of an
object iff X is an object (albeit illegal pre-2020 if
nonscalar).
Diffstat (limited to 'gcc/alloc-pool.c')
0 files changed, 0 insertions, 0 deletions