* expr.c (cplus_expand_expr): Adjust call accordingly.
* init.c (finish_init_stmts): Likewise.
* parse.y (primary): Likewise.
* pt.c (tsubst_copy): Likewise.
* semantics.c (finish_stmt_expr): Don't take two parameters.
Don't remove generated BLOCKs from the block-tree.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29533
138bc75d-0d04-0410-961f-
82ee72b054a4
1999-09-20 Mark Mitchell <mark@codesourcery.com>
+ * cp-tree.h (finish_stmt_expr): Change prototype.
+ * expr.c (cplus_expand_expr): Adjust call accordingly.
+ * init.c (finish_init_stmts): Likewise.
+ * parse.y (primary): Likewise.
+ * pt.c (tsubst_copy): Likewise.
+ * semantics.c (finish_stmt_expr): Don't take two parameters.
+ Don't remove generated BLOCKs from the block-tree.
+
Remove support for assigning to `this'.
* NEWS: Note that fact.
* class.c (build_vbase_path): Don't check flag_this_is_variable.
extern void finish_subobject PROTO((tree));
extern tree finish_parenthesized_expr PROTO((tree));
extern tree begin_stmt_expr PROTO((void));
-extern tree finish_stmt_expr PROTO((tree, tree));
+extern tree finish_stmt_expr PROTO((tree));
extern tree finish_call_expr PROTO((tree, tree, int));
extern tree finish_increment_expr PROTO((tree, enum tree_code));
extern tree finish_this_expr PROTO((void));
case STMT_EXPR:
{
tree rtl_expr = begin_stmt_expr ();
- tree block = expand_stmt (STMT_EXPR_STMT (exp));
- finish_stmt_expr (rtl_expr, block);
+ expand_stmt (STMT_EXPR_STMT (exp));
+ finish_stmt_expr (rtl_expr);
return expand_expr (rtl_expr, target, tmode, modifier);
}
break;
tree compound_stmt;
{
pop_momentary ();
- stmt_expr
- = finish_stmt_expr (stmt_expr,
- finish_compound_stmt (/*has_no_scope=*/1,
- compound_stmt));
+ finish_compound_stmt (/*has_no_scope=*/1, compound_stmt);
+ stmt_expr = finish_stmt_expr (stmt_expr);
/* To avoid spurious warnings about unused values, we set
TREE_USED. */
$<ttype>$ = begin_stmt_expr ();
}
compstmt ')'
- { $$ = finish_stmt_expr ($<ttype>2, $3); }
+ { $$ = finish_stmt_expr ($<ttype>2); }
/* Koenig lookup support
We could store lastiddecl in $1 to avoid another lookup,
but that would result in many additional reduce/reduce conflicts. */
if (!processing_template_decl)
{
tree rtl_expr = begin_stmt_expr ();
- tree block = tsubst_expr (STMT_EXPR_STMT (t), args,
- complain, in_decl);
- return finish_stmt_expr (rtl_expr, block);
+ tsubst_expr (STMT_EXPR_STMT (t), args,
+ complain, in_decl);
+ return finish_stmt_expr (rtl_expr);
}
return t;
--- /dev/null
+// Build don't link:
+// Special g++ Options: -O
+// Origin: Thomas Kunert <kunert@physik.tu-dresden.de>
+
+#include <ctype.h>
+
+bool f( char c )
+{
+ return tolower( c );
+}