[COMMITTED] ada: Fix wrong size value output with -gnatR -gnatc
Checks
Commit Message
From: Eric Botcazou <ebotcazou@adacore.com>
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.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/gcc-interface/decl.cc | 1 +
1 file changed, 1 insertion(+)
@@ -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);