projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac22f9c
)
cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
author
Mark Mitchell
<mmitchel@gcc.gnu.org>
Fri, 22 Oct 1999 06:35:17 +0000
(06:35 +0000)
committer
Mark Mitchell
<mmitchel@gcc.gnu.org>
Fri, 22 Oct 1999 06:35:17 +0000
(06:35 +0000)
* cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
* call.c (build_call): Use EMPTY_CLASS_EXPR instead of RTL_EXPR.
* expr.c (cplus_expand_expr): Expand it.
* ir.texi: Document EMPTY_CLASS_EXPR.
From-SVN: r30128
gcc/cp/expr.c
patch
|
blob
|
history
diff --git
a/gcc/cp/expr.c
b/gcc/cp/expr.c
index
6a3637b
..
e588efb
100644
(file)
--- a/
gcc/cp/expr.c
+++ b/
gcc/cp/expr.c
@@
-234,6
+234,10
@@
cplus_expand_expr (exp, target, tmode, modifier)
expand_internal_throw ();
return NULL;
+ case EMPTY_CLASS_EXPR:
+ /* We don't need to generate any code for an empty class. */
+ return const0_rtx;
+
case STMT_EXPR:
{
tree rtl_expr = begin_stmt_expr ();