This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[fixed-point] Patch to fix count_type_elements() for FIXED_POINT_TYPE
- From: "Fu, Chao-Ying" <fu at mips dot com>
- To: <gcc-patches at gcc dot gnu dot org>, "Mohamed Shafi" <shafitvm at gmail dot com>
- Cc: "Thekkath, Radhika" <radhika at mips dot com>, "Stephens, Nigel" <nigel at mips dot com>
- Date: Wed, 7 Mar 2007 14:02:37 -0800
- Subject: [fixed-point] Patch to fix count_type_elements() for FIXED_POINT_TYPE
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: