]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix wrong size value output with -gnatR -gnatc
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 16 Nov 2023 09:29:23 +0000 (10:29 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 28 Nov 2023 09:35:48 +0000 (10:35 +0100)
This happens when a parameter is involved in the computation.

gcc/ada/

* gcc-interface/decl.cc (annotate_value): Apply the same processing
for parameters as for variables.

gcc/ada/gcc-interface/decl.cc

index c446b14617906a10433649166eb11187e42d859e..d2456bfbc01112535aba2ab9e890d2b667c403d7 100644 (file)
@@ -8897,6 +8897,7 @@ annotate_value (tree gnu_size)
        return No_Uint;
       break;
 
+    case PARM_DECL:
     case VAR_DECL:
       tcode = Dynamic_Val;
       ops[0] = UI_From_Int (++var_count);