exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity must be materiali...
authorEd Schonberg <schonberg@adacore.com>
Fri, 17 Feb 2006 16:06:28 +0000 (17:06 +0100)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 17 Feb 2006 16:06:28 +0000 (17:06 +0100)
2006-02-17  Ed Schonberg  <schonberg@adacore.com>

* exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
must be materialized when the renamed expression is an explicit
dereference.

From-SVN: r111186

gcc/ada/exp_dbug.adb

index 8281f154183908ae9bd94b4c66a6c290e70fd4ed..1ad503c6dee1bfcdaba2540f7a4f131c8c00e95c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1996-2005, Free Software Foundation, Inc.         --
+--          Copyright (C) 1996-2006, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -431,6 +431,7 @@ package body Exp_Dbug is
                Ren := Prefix (Ren);
 
             when N_Explicit_Dereference =>
+               Set_Materialize_Entity (Ent);
                Prepend_String_To_Buffer ("XA");
                Ren := Prefix (Ren);