aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>1998-07-23 05:09:39 -0700
committerPer Bothner <bothner@gcc.gnu.org>1998-07-23 05:09:39 -0700
commit6e7f84a73211f0bfbd98ca166268c95befb25f73 (patch)
tree7c494a98e54ddfe70b7af3bfeb13c038a97913f3 /gcc/expr.c
parent71208e03a989e5b54a6dbb9ec88bad86897bf49e (diff)
downloadgcc-6e7f84a73211f0bfbd98ca166268c95befb25f73.zip
gcc-6e7f84a73211f0bfbd98ca166268c95befb25f73.tar.gz
gcc-6e7f84a73211f0bfbd98ca166268c95befb25f73.tar.bz2
expr.c (expand_expr): Expand RETURN_EXPR.
8 * expr.c (expand_expr): Expand RETURN_EXPR. From-SVN: r21347
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 ceb537e..a32026e 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);