[fixed-point] Support &&, || and add new tests

Fu, Chao-Ying fu@mips.com
Fri Jun 8 00:46:00 GMT 2007


Hi,

  This patch supports && and || for fixed-point
types.  19 new tests are added.  Thanks!

Regards,
Chao-ying

ChangeLog
2007-06-07  Chao-ying Fu  <fu@mips.com>

	* c-typeck.c (build_binary_op): Support fixed-point types for
	TRUTH_*_EXPR.

testsuite/ChangeLog
2007-06-07  Chao-ying Fu  <fu@mips.com>

	* gcc.dg/fixed-point/func-scalar.c,
	* gcc.dg/fixed-point/operator-logical.c,
	* gcc.dg/fixed-point/func-array.c,
	* gcc.dg/fixed-point/struct-union.c,
	* gcc.dg/fixed-point/func-struct.c,
	* gcc.dg/fixed-point/func-vararg-mixed.c,
	* gcc.dg/fixed-point/bit-complement.c,
	* gcc.dg/fixed-point/operator-comma.c,
	* gcc.dg/fixed-point/union-init.c,
	* gcc.dg/fixed-point/struct-layout-1.c,
	* gcc.dg/fixed-point/operator-bitwise.c,
	* gcc.dg/fixed-point/func-mixed.c,
	* gcc.dg/fixed-point/func-vararg-size0.c,
	* gcc.dg/fixed-point/func-vararg.c,
	* gcc.dg/fixed-point/operator-cond.c,
	* gcc.dg/fixed-point/loop-index.c,
	* gcc.dg/fixed-point/Wbad-function-cast-1.c,
	* gcc.dg/fixed-point/operator-unary.c,
	* gcc.dg/fixed-point/int-warning.c: New tests.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.diff
Type: application/octet-stream
Size: 90029 bytes
Desc: gcc.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070608/16d61cf2/attachment.obj>


More information about the Gcc-patches mailing list