re PR c++/17412 (tree check failure in fold-const)
authorSteven Bosscher <stevenb@suse.de>
Sat, 11 Sep 2004 19:48:58 +0000 (19:48 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Sat, 11 Sep 2004 19:48:58 +0000 (19:48 +0000)
commit05cf561db41aa56f53e0c77b4489987f25fe2efa
treebb1962bfc50766eb7a19c562763e5c166da579bc
parenta0be84dd8c0a461050ab96d8c563c9e9482e0107
re PR c++/17412 (tree check failure in fold-const)

PR c++/17412
* fold-const.c (fold): Do not try to fold the operand of a
CLEANUP_POINT_EXPR if that operand does itself not have any
operands.
testsuite/
* g++.dg/parse/break-in-for.C: New test.

PR middle-end/17417
* langhooks.c (lhd_decl_printable_name): Make sure that this
function is called with is a decl node that has an identifier.
* tree-pretty-print.c (dump_function_name): New function to
wrap PRINT_FUNCTION_NAME and dump_decl_name.
(print_call_name): Use it.

From-SVN: r87363
gcc/ChangeLog
gcc/fold-const.c
gcc/langhooks.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/parse/break-in-for.C [new file with mode: 0644]
gcc/tree-pretty-print.c