This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR c++/17972
- From: Jason Merrill <jason at redhat dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 11 Mar 2005 12:37:53 -0500
- Subject: Re: [PATCH] Fix PR c++/17972
- References: <200503090851.55785.ebotcazou@libertysurf.fr>
Yuck. Unfortunately, I don't think this patch is enough to solve the
problem; what if save_expr is passed, say, the sum of two const CALL_EXPRs?
It seems that we will need to recursively search these expressions for
calls.
Also, stabilize_expr and its ilk in the C++ front end probably need similar
code.
All of which raises the question of whether unsetting TREE_SIDE_EFFECTS on
such calls was such a good idea.
Jason