This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ pcc struct return fix
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Cc: mark at codesourcery dot com
- Date: Fri, 30 Nov 2001 21:53:05 -2900 (EST)
- Subject: C++ pcc struct return fix
This fixes an infinite loop in cc1plus that occurs when compiling a
function that returns a pcc. I believe that the VAX is the only with this
characteristic. This patch was part of a patch submitted near the release
of 3.0 but there was insufficient time for review at the time. I have
been using it in my vax builds since that time.
Please review.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
--- 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;
}