]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-typeck.c
c-typeck.c (default_function_array_conversion, [...]): Allow for CONVERT_EXPR as...
authorJoseph Myers <joseph@codesourcery.com>
Sat, 3 Dec 2005 01:25:42 +0000 (01:25 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 3 Dec 2005 01:25:42 +0000 (01:25 +0000)
commit718699e90006763f7a55e5e6449e5b9707c5125f
tree6c2b69079782b4aa8a161ed35bf198ae14b5ad6e
parent3820178b949baa84b2d55069579a545fba478430
c-typeck.c (default_function_array_conversion, [...]): Allow for CONVERT_EXPR as well as NOP_EXPR.

* c-typeck.c (default_function_array_conversion,
build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
(build_conditional_expr): Apply integer_zerop to orig_op1 and
orig_op2.  Don't check them for NOP_EXPR.
(build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
around integer zero.

testsuite:
* gcc.dg/c90-const-expr-4.c, gcc.dg/c99-const-expr-4.c: New tests.

From-SVN: r107990
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c90-const-expr-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/c99-const-expr-4.c [new file with mode: 0644]