aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-01-27 12:07:36 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-01-27 07:07:36 -0500
commit56841f01ec38e019698d4b1d54367e79d313916a (patch)
tree0cf17e0febfa1d10486f73ccf42c013db320ab36 /gcc
parent6db34dd47be8633131bd54492942c6e85272db1a (diff)
downloadgcc-56841f01ec38e019698d4b1d54367e79d313916a.zip
gcc-56841f01ec38e019698d4b1d54367e79d313916a.tar.gz
gcc-56841f01ec38e019698d4b1d54367e79d313916a.tar.bz2
expr.c (cplus_expand_expr, [...]): Don't check that return_target and call_target are equivalent.
* expr.c (cplus_expand_expr, AGGR_INIT_EXPR): Don't check that return_target and call_target are equivalent. From-SVN: r17510
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/expr.c8
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 4230426..4830897 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,7 +1,10 @@
Tue Jan 27 01:44:02 1998 Jason Merrill <jason@yorick.cygnus.com>
+ * expr.c (cplus_expand_expr, AGGR_INIT_EXPR): Don't check that
+ return_target and call_target are equivalent.
+
* pt.c (type_unification_real): Just accept function parms that
- don't use any template parms.
+ don't use any template parms.
Sun Jan 25 03:30:00 1998 Jason Merrill <jason@yorick.cygnus.com>
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 266da02..a275c8e 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -125,11 +125,9 @@ cplus_expand_expr (exp, target, tmode, modifier)
return_target = expand_call (call_exp, call_target, ignore);
if (call_target)
- {
- my_friendly_assert (rtx_equal_p (call_target, return_target)
- || TYPE_HAS_TRIVIAL_INIT_REF (type), 317);
- return return_target;
- }
+ /* Trust that the right thing has been done; it's too hard to
+ verify. */
+ return return_target;
/* If we're suffering under the ancient PCC_STATIC_STRUCT_RETURN
calling convention, we need to copy the return value out of