public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5916] ada: Fix wrong size value output with -gnatR -gnatc
@ 2023-11-28  9:38 Marc Poulhi?s
  0 siblings, 0 replies; only message in thread
From: Marc Poulhi?s @ 2023-11-28  9:38 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7eaf95689bf495ab07473951ededa835eb618123

commit r14-5916-g7eaf95689bf495ab07473951ededa835eb618123
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Thu Nov 16 10:29:23 2023 +0100

    ada: Fix wrong size value output with -gnatR -gnatc
    
    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.

Diff:
---
 gcc/ada/gcc-interface/decl.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc
index c446b146179..d2456bfbc01 100644
--- a/gcc/ada/gcc-interface/decl.cc
+++ b/gcc/ada/gcc-interface/decl.cc
@@ -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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-28  9:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-28  9:38 [gcc r14-5916] ada: Fix wrong size value output with -gnatR -gnatc Marc Poulhi?s

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).