diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-05-16 11:33:01 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-05-16 11:33:01 +0000 |
commit | d972bae09cb9737f86d48ea57c4b50d470edad85 (patch) | |
tree | 029bedfcc4f3fac7b75cb4d844b1bdee0f4a61b7 /gcc/ada/gcc-interface/decl.c | |
parent | f91caacb455ba93610b3cb751d88d36aa58b3a58 (diff) | |
download | gcc-d972bae09cb9737f86d48ea57c4b50d470edad85.zip gcc-d972bae09cb9737f86d48ea57c4b50d470edad85.tar.gz gcc-d972bae09cb9737f86d48ea57c4b50d470edad85.tar.bz2 |
decl.c (gnat_to_gnu_entity): Do not build a specific type for the object if it is deemed a constant.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Do not build
a specific type for the object if it is deemed a constant.
From-SVN: r236283
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
-rw-r--r-- | gcc/ada/gcc-interface/decl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 8f2be23..b51200f 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -1437,9 +1437,6 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, bool definition) = build_reference_type (TYPE_OBJECT_RECORD_TYPE (gnu_array)); } - if (const_flag) - gnu_type = change_qualified_type (gnu_type, TYPE_QUAL_CONST); - /* Convert the expression to the type of the object if need be. */ if (gnu_expr && initial_value_needs_conversion (gnu_type, gnu_expr)) gnu_expr = convert (gnu_type, gnu_expr); |