dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or DW_ATE_signed_fixed to...
authorChao-ying Fu <fu@mips.com>
Thu, 25 Oct 2007 01:02:35 +0000 (01:02 +0000)
committerChao-ying Fu <chaoyingfu@gcc.gnu.org>
Thu, 25 Oct 2007 01:02:35 +0000 (01:02 +0000)
* dwarf2out.c (base_type_die): Use DW_ATE_unsigned_fixed or
DW_ATE_signed_fixed to describe FIXED_POINT_TYPE.

From-SVN: r129620

gcc/ChangeLog
gcc/dwarf2out.c

index 154b72c..cd494ad 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-24  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.
+
 2007-10-24  Samuel Tardieu  <sam@rfc1149.net>
             Olga Golovanevsky <olga@il.ibm.com>
        
index 8a398e4..46e2b59 100644 (file)
@@ -8434,9 +8434,9 @@ base_type_die (tree type)
 
     case FIXED_POINT_TYPE:
       if (TYPE_UNSIGNED (type))
-       encoding = DW_ATE_signed_fixed;
-      else
        encoding = DW_ATE_unsigned_fixed;
+      else
+       encoding = DW_ATE_signed_fixed;
       break;
 
       /* Dwarf2 doesn't know anything about complex ints, so use