[fixed-point] Patch to fix count_type_elements() for FIXED_POINT_TYPE

Fu, Chao-Ying fu@mips.com
Thu Mar 8 00:13:00 GMT 2007


Hi,

  This patch fixed a bug in expr.c to handle FIXED_POINT_TYPE in
this function: "count_type_elements ()".  Thanks!

Regards,
Chao-ying

gcc/ChangeLog
2007-03-07  Chao-ying Fu  <fu@mips.com>

        * expr.c (count_type_elements): Handle the case of FIXED_POINT_TYPE.

Index: expr.c
===================================================================
--- expr.c      (revision 122629)
+++ expr.c      (working copy)
@@ -4816,6 +4816,7 @@

     case INTEGER_TYPE:
     case REAL_TYPE:
+    case FIXED_POINT_TYPE:
     case ENUMERAL_TYPE:
     case BOOLEAN_TYPE:
     case POINTER_TYPE:



More information about the Gcc-patches mailing list