https://gcc.gnu.org/g:78352395e94fda574fa2d9c711c57f9099807f2b

commit r15-1303-g78352395e94fda574fa2d9c711c57f9099807f2b
Author: Alexandre Oliva <ol...@gnu.org>
Date:   Thu Jun 13 21:03:35 2024 -0300

    Revert "map packed field type to unpacked for debug info"
    
    This reverts commit ea5c9f25241ae0658180afbcad7f4e298352f561.

Diff:
---
 gcc/ada/gcc-interface/decl.cc   | 4 ----
 gcc/testsuite/gnat.dg/bias1.adb | 3 +--
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc
index e97ff64a4805..8b72c96c4396 100644
--- a/gcc/ada/gcc-interface/decl.cc
+++ b/gcc/ada/gcc-interface/decl.cc
@@ -7786,7 +7786,6 @@ gnat_to_gnu_field (Entity_Id gnat_field, tree 
gnu_record_type, int packed,
   /* If a size is specified, adjust the field's type to it.  */
   if (gnu_size)
     {
-      tree debug_field_type = gnu_field_type;
       tree orig_field_type;
 
       /* If the field's type is justified modular, we would need to remove
@@ -7845,9 +7844,6 @@ gnat_to_gnu_field (Entity_Id gnat_field, tree 
gnu_record_type, int packed,
          && !DECL_P (TYPE_NAME (gnu_field_type)))
        create_type_decl (TYPE_NAME (gnu_field_type), gnu_field_type, true,
                          debug_info_p, gnat_field);
-
-      if (debug_info_p && gnu_field_type != debug_field_type)
-       SET_TYPE_DEBUG_TYPE (gnu_field_type, debug_field_type);
     }
 
   /* Otherwise (or if there was an error), don't specify a position.  */
diff --git a/gcc/testsuite/gnat.dg/bias1.adb b/gcc/testsuite/gnat.dg/bias1.adb
index d9a00a1aa458..016a159b692d 100644
--- a/gcc/testsuite/gnat.dg/bias1.adb
+++ b/gcc/testsuite/gnat.dg/bias1.adb
@@ -1,7 +1,6 @@
 --  { dg-do compile }
 --  { dg-options "-cargs -g -dA -gnatws -fgnat-encodings=gdb -margs" }
 --  { dg-final { scan-assembler "DW_AT_GNU_bias" } }
---  { dg-final { scan-assembler-times "-7.*DW_AT_GNU_bias" 1 } }
 
 procedure Bias1 is
    type Small is range -7 .. -4;
@@ -32,4 +31,4 @@ procedure Bias1 is
 
 begin
    null;
-end Bias1;
+end Bias1;
\ No newline at end of file

Reply via email to