This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ pcc struct return fix
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Fri, 30 Nov 2001 22:34:51 -2900 (EST)
- Subject: Re: C++ pcc struct return fix
> --- semantics.c.orig Wed Apr 18 13:51:48 2001
> +++ semantics.c Wed Apr 18 18:16:58 2001
Oops, forgot description:
2001-11-30 John David Anglin <dave@hiauly1.hia.nrc.ca>
* semantics.c (simplify_aggr_init_exprs_r): Add DIRECT_BIND flag in
call to build_aggr_init.
--- semantics.c.orig Wed Apr 18 13:51:48 2001
+++ semantics.c Wed Apr 18 18:16:58 2001
@@ -2240,7 +2240,8 @@
int old_ac = flag_access_control;
flag_access_control = 0;
- call_expr = build_aggr_init (slot, call_expr, LOOKUP_ONLYCONVERTING);
+ call_expr = build_aggr_init (slot, call_expr,
+ DIRECT_BIND | LOOKUP_ONLYCONVERTING);
flag_access_control = old_ac;
copy_from_buffer_p = 1;
}
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)