OSDN Git Service

PR middle-end/28473
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jul 2006 23:21:56 +0000 (23:21 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jul 2006 23:21:56 +0000 (23:21 +0000)
commita2d0445dacbd93ce0b21d8641c5315c72727fee1
treefe2cca2c97ebff50cdce92939507476d43dba1e2
parent01b1b46d0819b9d111fb9144d1163a9dc86d921f
PR middle-end/28473
* convert.c (convert_to_integer): When transforming (T)foo(x) into
bar(x) check that bar's result type can represent all the values of T.

* gcc.dg/fold-convround-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115742 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-convround-1.c [new file with mode: 0644]