This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Fix a bug in Dwarf format for fixed-point types


Hi,

  This patch fixed a bug that has reversed encodings.
Is it ok to apply the patch to the GCC mainline?
Thanks!

Regards,
Chao-ying

2007-10-23  Chao-ying Fu  <fu@mips.com>

        * dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or
        DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.

Index: dwarf2out.c
===================================================================
--- dwarf2out.c (revision 129583)
+++ dwarf2out.c (working copy)
@@ -8434,9 +8434,9 @@

     case FIXED_POINT_TYPE:
       if (TYPE_UNSIGNED (type))
+       encoding = DW_ATE_unsigned_fixed;
+      else
        encoding = DW_ATE_signed_fixed;
-      else
-       encoding = DW_ATE_unsigned_fixed;
       break;

       /* Dwarf2 doesn't know anything about complex ints, so use


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]