]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Missing piece in earlier change
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 9 Jul 2021 16:30:54 +0000 (18:30 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 9 Jul 2021 16:32:25 +0000 (18:32 +0200)
gcc/ada/
* gcc-interface/utils.c (finish_subprog_decl): Remove obsolete line.

gcc/ada/gcc-interface/utils.c

index 952f032072b761a0a23062743bb8f871deb7464a..bfacb0eaeb435355061b5b0277503f1d5855edf4 100644 (file)
@@ -3543,9 +3543,6 @@ finish_subprog_decl (tree decl, tree asm_name, tree type)
   DECL_BY_REFERENCE (result_decl) = TREE_ADDRESSABLE (type);
   DECL_RESULT (decl) = result_decl;
 
-  /* Propagate the "const" property.  */
-  TREE_READONLY (decl) = TYPE_READONLY (type);
-
   /* Propagate the "pure" property.  */
   DECL_PURE_P (decl) = TYPE_RESTRICT (type);