summaryrefslogtreecommitdiffstats
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-23 12:09:39 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1998-07-23 12:09:39 +0000
commit2be2ba3ca077efe23f2f1165498f386ce0c05707 (patch)
tree7c494a98e54ddfe70b7af3bfeb13c038a97913f3 /gcc/expr.c
parent03da359d051dd7d37fe4e9f2c2a560c66b0b1a54 (diff)
downloadppe42-gcc-2be2ba3ca077efe23f2f1165498f386ce0c05707.tar.gz
ppe42-gcc-2be2ba3ca077efe23f2f1165498f386ce0c05707.zip
8
* expr.c (expand_expr): Expand RETURN_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21347 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index ceb537e721e..a32026e82ec 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -7543,6 +7543,13 @@ expand_expr (exp, target, tmode, modifier)
return temp;
}
+ case RETURN_EXPR:
+ if (!TREE_OPERAND (exp, 0))
+ expand_null_return ();
+ else
+ expand_return (TREE_OPERAND (exp, 0));
+ return const0_rtx;
+
case PREINCREMENT_EXPR:
case PREDECREMENT_EXPR:
return expand_increment (exp, 0, ignore);
OpenPOWER on IntegriCloud