This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r152548 - in /trunk/gcc: ChangeLog c-common.c c...
- From: jsm28 at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 08 Oct 2009 00:32:51 -0000
- Subject: r152548 - in /trunk/gcc: ChangeLog c-common.c c...
Author: jsm28
Date: Thu Oct 8 00:32:51 2009
New Revision: 152548
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152548
Log:
PR c/41182
* c-common.c (c_fully_fold_internal): Strip nops from the result
of recursive calls to c_fully_fold_internal.
(c_wrap_maybe_const): New.
(c_save_expr): Use c_wrap_maybe_const.
* c-common.h (c_wrap_maybe_const): Declare.
* c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
build_binary_op): Use c_wrap_maybe_const.
testsuite:
* gcc.c-torture/compile/pr41182-1.c: New.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr41182-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-common.c
trunk/gcc/c-common.h
trunk/gcc/c-typeck.c
trunk/gcc/testsuite/ChangeLog