c-typeck.c (build_c_cast): Fold constant variables into initial values.
authorJan Hubicka <hubicka@gcc.gnu.org>
Sun, 16 Feb 2003 22:10:10 +0000 (22:10 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 16 Feb 2003 22:10:10 +0000 (22:10 +0000)
commit096daf41db55827292c1d70cd937b4e97de8043a
treec0995f241340b5f698925d91af5ffa83db5f4b1e
parent35113fde34664bf86a7cee2deb8d94a5537a8a29
c-typeck.c (build_c_cast): Fold constant variables into initial values.

* c-typeck.c (build_c_cast):  Fold constant variables into
initial values.

* gcc.dg/c90-const-expr-3.c (DZERO): New static variable
(foo): Add few extra tests
* gcc.dg/c99-const-expr-3.c: Likewise.
* gcc.c-torture/execute/20030216-1.c: New.

From-SVN: r62987
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20030216-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c90-const-expr-3.c
gcc/testsuite/gcc.dg/c99-const-expr-3.c