diff options
author | Steven Bosscher <stevenb@suse.de> | 2004-09-11 19:48:58 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2004-09-11 19:48:58 +0000 |
commit | 05cf561db41aa56f53e0c77b4489987f25fe2efa (patch) | |
tree | bb1962bfc50766eb7a19c562763e5c166da579bc /gcc/langhooks.c | |
parent | a0be84dd8c0a461050ab96d8c563c9e9482e0107 (diff) | |
download | gcc-05cf561db41aa56f53e0c77b4489987f25fe2efa.zip gcc-05cf561db41aa56f53e0c77b4489987f25fe2efa.tar.gz gcc-05cf561db41aa56f53e0c77b4489987f25fe2efa.tar.bz2 |
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
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 9f0a236..309bef5 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -267,6 +267,7 @@ lhd_expand_decl (tree ARG_UNUSED (t)) const char * lhd_decl_printable_name (tree decl, int ARG_UNUSED (verbosity)) { + gcc_assert (decl && DECL_NAME (decl)); return IDENTIFIER_POINTER (DECL_NAME (decl)); } |