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]

[fixed-point] Patch for tree-pretty-print and _Sat


Hello,

  Here is the patch to handle fixed-point types and constants in tree-pretty-print,
and to support _Sat correctly.  Thanks!

Regards,
Chao-ying

2006-11-20  Chao-ying Fu  <fu@mips.com>

	* Makefile.in (tree-pretty-print.o): Add dependence from fixed_value.h.
	* tree-pretty-print.c (fixed_value.h): New include.
	(dump_generic_node): Handle FIXED_POINT_TYPE and FIXED_CST.
	* c-decl.c (declspecs_add_qual): Remove the case of RID_SAT.
	(declspecs_add_type): Handle RID_SAT and warn when -pedantic.
	Give errors when _Sat is used with non fixed-point types.
	* fixed_value.h (fixed_to_decimal): Declare.
	* fixed_value.c (fixed_to_decimal): New function.
	* c-common.h (enum rid): Move RID_SAT right after RID_THREAD and before
	RID_ONEWAY, such that it is checked in declspecs_add_type.
	* c-common.c (c_common_nodes_and_builtins): Record builtin types for
	fixed-point types.
	* c-parser.c (c_parser_declspecs): Change comments such that _Sat
	belongs to type-specifier.
	(c_parser_declspecs): Move RID_SAT after RID_ACCUM.

Attachment: gcc.diff
Description: gcc.diff


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