tree.h (DECIMAL_FLOAT_TYPE_P): New.
authorJanis Johnson <janis187@us.ibm.com>
Fri, 23 Jun 2006 21:17:53 +0000 (21:17 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Fri, 23 Jun 2006 21:17:53 +0000 (21:17 +0000)
commit5fc89bfdd7468927e0b3d5aabd5b73af60d9cebe
tree37c4db6e4704c909e6788fed55acb58ba4c4c1a2
parent17bbca74807b33cbebdea7761536468e147cf197
tree.h (DECIMAL_FLOAT_TYPE_P): New.

* tree.h (DECIMAL_FLOAT_TYPE_P): New.
* c-typeck.c (c_common_type): Disallow operations on decimal float
types and other float types.
* convert.c (convert_to_real): Don't ignore conversions involving
decimal float types.

testsuite:
* gcc.dg/dfp/usual-arith-conv-bad.c: New test.

From-SVN: r114951
gcc/ChangeLog
gcc/c-typeck.c
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/dfp/usual-arith-conv-bad.c [new file with mode: 0644]
gcc/tree.h