diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2020-05-26 21:21:08 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2020-05-26 21:23:27 +0200 |
commit | 73655feb9d44829ce2153f4f5eacc37a6268ce73 (patch) | |
tree | c2b3947d4944014e0ae45f84de62eaa7af6f11c4 /gcc/ada/gcc-interface/decl.c | |
parent | 48d526613961f410a87855ba2fef8909e925d9fa (diff) | |
download | gcc-73655feb9d44829ce2153f4f5eacc37a6268ce73.zip gcc-73655feb9d44829ce2153f4f5eacc37a6268ce73.tar.gz gcc-73655feb9d44829ce2153f4f5eacc37a6268ce73.tar.bz2 |
Fix issue with LTO bootstrap
gcc/ada/ChangeLog
PR ada/95333
* gcc-interface/decl.c (gnat_to_gnu_param): Never make a variant of
the type.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.c')
-rw-r--r-- | gcc/ada/gcc-interface/decl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c index 94ea05d..38c73cb 100644 --- a/gcc/ada/gcc-interface/decl.c +++ b/gcc/ada/gcc-interface/decl.c @@ -5408,15 +5408,6 @@ gnat_to_gnu_param (Entity_Id gnat_param, tree gnu_param_type, bool first, gnu_param_type = unpadded_type; } - /* If this is a read-only parameter, make a variant of the type that is - read-only, except in LTO mode because free_lang_data_in_type would - undo it. ??? However, if this is a self-referential type, the type - can be very complex, so skip it for now. */ - if (ro_param - && !flag_generate_lto - && !CONTAINS_PLACEHOLDER_P (TYPE_SIZE (gnu_param_type))) - gnu_param_type = change_qualified_type (gnu_param_type, TYPE_QUAL_CONST); - /* For foreign conventions, pass arrays as pointers to the element type. First check for unconstrained array and get the underlying array. */ if (foreign && TREE_CODE (gnu_param_type) == UNCONSTRAINED_ARRAY_TYPE) |